diff --git a/doc/api/esm.md b/doc/api/esm.md index 41e116fb777ce9..eab0f3957eee27 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -485,9 +485,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`][]. @@ -1539,6 +1539,7 @@ success! [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