5
5
<!-- YAML
6
6
added: v8.5.0
7
7
changes:
8
+ - version:
9
+ - REPLACEME
10
+ pr-url: https://github.com/nodejs/node/pull/35781
11
+ description: Stabilize modules implementation.
8
12
- version:
9
13
- v12.20.0
10
14
pr-url: https://github.com/nodejs/node/pull/35249
@@ -23,7 +27,7 @@ changes:
23
27
`"type"` field.
24
28
-->
25
29
26
- > Stability: 1 - Experimental
30
+ > Stability: 2 - Stable
27
31
28
32
## Introduction
29
33
@@ -55,15 +59,9 @@ console.log(addTwo(4));
55
59
```
56
60
57
61
Node.js fully supports ECMAScript modules as they are currently specified and
58
- provides limited interoperability between them and the existing module format,
62
+ provides interoperability between them and its original module format,
59
63
[ CommonJS] [ ] .
60
64
61
- Node.js contains support for ES Modules based upon the
62
- [ Node.js EP for ES Modules] [ ] and the [ ECMAScript-modules implementation] [ ] .
63
-
64
- Expect major changes in the implementation including interoperability support,
65
- specifier resolution, and default behavior.
66
-
67
65
<!-- Anchors to make sure old links find a target -->
68
66
<i id =" #esm_package_json_type_field " ></i >
69
67
<i id =" #esm_package_scope_and_file_extensions " ></i >
@@ -1268,9 +1266,7 @@ success!
1268
1266
[CommonJS]: modules .html
1269
1267
[Conditional exports ]: packages .html #packages_conditional_exports
1270
1268
[Dynamic ` import()` ]: https: // wiki.developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#Dynamic_Imports
1271
- [ECMAScript- modules implementation]: https: // github.com/nodejs/modules/blob/master/doc/plan-for-new-modules-implementation.md
1272
1269
[ES Module Integration Proposal for Web Assembly]: https: // github.com/webassembly/esm-integration
1273
- [Node .js EP for ES Modules]: https: // github.com/nodejs/node-eps/blob/master/002-es-modules.md
1274
1270
[Terminology]: #esm_terminology
1275
1271
[WHATWG JSON modules specification]: https: // html.spec.whatwg.org/#creating-a-json-module-script
1276
1272
[` data:` URLs]: https: // developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs
0 commit comments