Skip to content

Commit 7df65d5

Browse files
committed
doc: change file extension
1 parent 216914b commit 7df65d5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

doc/api/esm.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ cache, to avoid duplication. The same object will be returned in
426426
CommonJS if the JSON module has already been imported from the
427427
same path.
428428
429-
Assuming an `index.js` with
429+
Assuming an `index.mjs` with
430430
431431
<!-- eslint-skip -->
432432
```js
@@ -437,8 +437,8 @@ The `--experimental-json-modules` flag is needed for the module
437437
to work.
438438
439439
```bash
440-
node --experimental-modules index.js # fails
441-
node --experimental-modules --experimental-json-modules index.js # works
440+
node --experimental-modules index.mjs # fails
441+
node --experimental-modules --experimental-json-modules index.mjs # works
442442
```
443443
444444
## Experimental Loader hooks

0 commit comments

Comments
 (0)