Skip to content

Commit

Permalink
doc: change file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed May 13, 2019
1 parent 216914b commit 7df65d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ cache, to avoid duplication. The same object will be returned in
CommonJS if the JSON module has already been imported from the
same path.
Assuming an `index.js` with
Assuming an `index.mjs` with
<!-- eslint-skip -->
```js
Expand All @@ -437,8 +437,8 @@ The `--experimental-json-modules` flag is needed for the module
to work.
```bash
node --experimental-modules index.js # fails
node --experimental-modules --experimental-json-modules index.js # works
node --experimental-modules index.mjs # fails
node --experimental-modules --experimental-json-modules index.mjs # works
```
## Experimental Loader hooks
Expand Down

0 comments on commit 7df65d5

Please sign in to comment.