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.
1 parent 216914b commit 7df65d5Copy full SHA for 7df65d5
1 file changed
doc/api/esm.md
@@ -426,7 +426,7 @@ cache, to avoid duplication. The same object will be returned in
426
CommonJS if the JSON module has already been imported from the
427
same path.
428
429
-Assuming an `index.js` with
+Assuming an `index.mjs` with
430
431
<!-- eslint-skip -->
432
```js
@@ -437,8 +437,8 @@ The `--experimental-json-modules` flag is needed for the module
437
to work.
438
439
```bash
440
-node --experimental-modules index.js # fails
441
-node --experimental-modules --experimental-json-modules index.js # works
+node --experimental-modules index.mjs # fails
+node --experimental-modules --experimental-json-modules index.mjs # works
442
```
443
444
## Experimental Loader hooks
0 commit comments