Skip to content

Commit

Permalink
doc: disambiguate native module to addon
Browse files Browse the repository at this point in the history
Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com>
PR-URL: #45673
Refs: #44135
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
  • Loading branch information
daeyeon authored and targos committed Dec 12, 2022
1 parent c5a8f9f commit 6c2659f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`][].
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6c2659f

Please sign in to comment.