You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,25 @@ import module from 'my_private_module'
36
36
37
37
**WARNING:** If you are going to use this package within another NPM package, please read [Using within another NPM package](#using-within-another-npm-package) first to be aware of potential caveats.
38
38
39
+
## IMPORTANT - Node v14.6.0+
40
+
41
+
**WARNING:** If you are using Node v14.6.0 or above, you do not need this
42
+
package. A feature was added in Node v14.6.0 called import mapping - you can
43
+
find more at the official [documentation] site. This enables you to map from
44
+
both import paths AND dependencies, for both `require` and ESM `import`
45
+
statements, without potentially breaking the module resolution order for other
46
+
packages in a project (which makes it fully suitable for libraries and a better
47
+
alternative to this package).
48
+
49
+
For further explanation on how to use this to replace `module-alias`, there
50
+
are [more examples] in the documentation specifically focused on path imports.
51
+
52
+
We will not be deprecating this package so people can still use it for older
0 commit comments