mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
doc: fix file extension on ESM file example
PR-URL: https://github.com/nodejs/node/pull/25692 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
1 parent
b218b1204a
commit
34bc69d376
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user