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 <me@gus.host>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
ewhitebloom authored and vsemozhetbyt committed Jan 27, 2019
1 parent 7493db2 commit 5109e42
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 5109e42

Please sign in to comment.