mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
module: implement register utility
PR-URL: https://github.com/nodejs/node/pull/46826 Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
1 parent
d2d4a310f1
commit
a40a6c890a
21 files changed
+490
-10
No files matched your search
@@ -1267,6 +1267,23 @@ provided.
|
||||
Encoding provided to `TextDecoder()` API was not one of the
|
||||
[WHATWG Supported Encodings][].
|
||||
|
||||
<a id="ERR_ESM_LOADER_REGISTRATION_UNAVAILABLE"></a>
|
||||
|
||||
### `ERR_ESM_LOADER_REGISTRATION_UNAVAILABLE`
|
||||
|
||||
<!-- YAML
|
||||
added: REPLACEME
|
||||
-->
|
||||
|
||||
Programmatically registering custom ESM loaders
|
||||
currently requires at least one custom loader to have been
|
||||
registered via the `--experimental-loader` flag. A no-op
|
||||
loader registered via CLI is sufficient
|
||||
(for example: `--experimental-loader data:text/javascript,`;
|
||||
do not omit the necessary trailing comma).
|
||||
A future version of Node.js will support the programmatic
|
||||
registration of loaders without needing to also use the flag.
|
||||
|
||||
<a id="ERR_EVAL_ESM_CANNOT_PRINT"></a>
|
||||
|
||||
### `ERR_EVAL_ESM_CANNOT_PRINT`
|
||||
|
||||
Reference in new issue
Block a user