We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
import
1 parent 30b91f7 commit e35e7a3Copy full SHA for e35e7a3
commonjs-extension-resolution-loader/README.md
@@ -4,7 +4,14 @@ of file extensions and the ability to import directories that have an index
4
file.
5
6
Use this loader to enable automatic extension resolution and importing from
7
-directories that include an index file.
+directories that include an index file, like this:
8
+
9
+```js
10
+import file from './file'; // Where ./file is ./file.js or ./file.mjs
11
+import index from './folder'; // Where ./folder is ./folder/index.js or ./folder/index.mjs
12
+```
13
14
+This loader also applies these automatic resolution rules to the program entry point passed to `node` on the command line:
15
16
```console
17
$ node index.mjs
0 commit comments