Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Enabling section
Co-authored-by: Geoffrey Booth <[email protected]>
  • Loading branch information
aduh95 and GeoffreyBooth authored Aug 26, 2020
commit d43829323ab696c9dee9dcb748d74fc57c36a7ca
5 changes: 4 additions & 1 deletion doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ specifier resolution, and default behavior.

<!-- type=misc -->

Experimental support for ECMAScript modules is enabled by default. See
Node.js treats JavaScript code as CommonJS modules by default.
Authors can tell Node.js to treat JavaScript code as ECMAScript modules
via the `.mjs` file extension, the `package.json` `"type"` field, or the
`--input-type` flag. See
[Modules: Packages](packages.html#packages_determining_module_system) for more
details.

Expand Down