@@ -339,9 +339,9 @@ from `data:text/javascript,import "./foo";` will fail to resolve since there
339
339
is no concept of relative resolution for ` data: ` URLs. An example of a ` data: `
340
340
URLs being used is:
341
341
342
- ``` mjs
343
- import ' data:text/javascript,console.log("hello!");'
344
- import _ from ' data:application/json,"world!"'
342
+ ``` js
343
+ import ' data:text/javascript,console.log("hello!");' ;
344
+ import _ from ' data:application/json,"world!"' ;
345
345
```
346
346
347
347
## import.meta
@@ -894,18 +894,18 @@ $ node --experimental-modules --es-module-specifier-resolution=node index
894
894
success!
895
895
` ` `
896
896
897
+ [CommonJS]: modules.html
898
+ [ECMAScript-modules implementation]: https://github.com/nodejs/modules/blob/master/doc/plan-for-new-modules-implementation.md
899
+ [ES Module Integration Proposal for Web Assembly]: https://github.com/webassembly/esm-integration
900
+ [Node.js EP for ES Modules]: https://github.com/nodejs/node-eps/blob/master/002-es-modules.md
897
901
[Terminology]: #esm_terminology
902
+ [WHATWG JSON modules specification]: https://html.spec.whatwg.org/#creating-a-json-module-script
898
903
[` data: ` URLs]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs
899
904
[` export ` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/export
900
- [` import ` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import
901
905
[` import ()` ]: #esm_import-expressions
902
906
[` import .meta .url ` ]: #esm_import_meta
907
+ [` import ` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import
903
908
[` module .createRequire ()` ]: modules.html#modules_module_createrequire_filename
904
- [CommonJS]: modules.html
905
- [ECMAScript-modules implementation]: https://github.com/nodejs/modules/blob/master/doc/plan-for-new-modules-implementation.md
906
- [Node.js EP for ES Modules]: https://github.com/nodejs/node-eps/blob/master/002-es-modules.md
907
- [special scheme]: https://url.spec.whatwg.org/#special-scheme
908
- [WHATWG JSON modules specification]: https://html.spec.whatwg.org/#creating-a-json-module-script
909
- [ES Module Integration Proposal for Web Assembly]: https://github.com/webassembly/esm-integration
910
909
[dynamic instantiate hook]: #esm_dynamic_instantiate_hook
910
+ [special scheme]: https://url.spec.whatwg.org/#special-scheme
911
911
[the official standard format]: https://tc39.github.io/ecma262/#sec-modules
0 commit comments