We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c503b5c commit bf9a18cCopy full SHA for bf9a18c
doc/api/esm.md
@@ -45,6 +45,9 @@ The `import.meta` metaproperty is an `Object` that contains the following
45
property:
46
47
* `url` {string} The absolute `file:` URL of the module.
48
+* `require` {Function} To require CommonJS modules. This function enables
49
+ interoperability between CJS and ESM. See [`require()`]. None of the properties
50
+ generally exposed on require are available via `import.meta.require`.
51
52
### Unsupported
53
@@ -256,3 +259,4 @@ in the import tree.
256
259
[Node.js EP for ES Modules]: https://github.com/nodejs/node-eps/blob/master/002-es-modules.md
257
260
[addons]: addons.html
258
261
[dynamic instantiate hook]: #esm_dynamic_instantiate_hook
262
+[`require()`]: modules.html#modules_require
0 commit comments