doc: disambiguate native module to addon

Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/45673
Refs: https://github.com/nodejs/node/pull/44135
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
This commit is contained in:
Daeyeon Jeong
2022-11-29 20:18:28 +09:00
committed by Node.js GitHub Bot
parent 01b7ac6051
commit 01eec64b36

View File

@@ -486,9 +486,9 @@ These CommonJS variables are not available in ES modules.
`__filename` and `__dirname` use cases can be replicated via
[`import.meta.url`][].
#### No Native Module Loading
#### No Addon Loading
Native modules are not currently supported with ES module imports.
[Addons][] are not currently supported with ES module imports.
They can instead be loaded with [`module.createRequire()`][] or
[`process.dlopen`][].
@@ -1525,6 +1525,7 @@ for ESM specifiers is [commonjs-extension-resolution-loader][].
<!-- Note: The cjs-module-lexer link should be kept in-sync with the deps version -->
[6.1.7 Array Index]: https://tc39.es/ecma262/#integer-index
[Addons]: addons.md
[CommonJS]: modules.md
[Conditional exports]: packages.md#conditional-exports
[Core modules]: modules.md#core-modules