Skip to content

Commit

Permalink
doc: fix file extension on ESM file example
Browse files Browse the repository at this point in the history
PR-URL: #25692
Reviewed-By: Gus Caplan <[email protected]>
Reviewed-By: Vse Mozhet Byt <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
ewhitebloom authored and MylesBorins committed May 16, 2019
1 parent 6a2d9d1 commit a040a73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ representing the value of `module.exports` at the time they finished evaluating.
// foo.js
module.exports = { one: 1 };

// bar.js
// bar.mjs
import foo from './foo.js';
foo.one === 1; // true
```
Expand Down

0 comments on commit a040a73

Please sign in to comment.