You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Renames the `--loader` cli argument to `--experimental-loader`. This is
to clearly indicate the esm loader feature as experimental even after
esm is no longer experimental.
Also minorly alters the `--experimental-loader` docs to say that the
passed loader can be an esm module.
Refs: nodejs/modules#351 (comment)
PR-URL: #29752
Reviewed-By: Guy Bedford <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: David Carlier <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Copy file name to clipboardExpand all lines: doc/api/cli.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -368,12 +368,13 @@ Specify ways of the inspector web socket url exposure.
368
368
By default inspector websocket url is available in stderr and under `/json/list`
369
369
endpoint on `http://host:port/json/list`.
370
370
371
-
### `--loader=file`
371
+
### `--experimental-loader=module`
372
372
<!-- YAML
373
373
added: v9.0.0
374
374
-->
375
375
376
-
Specify the `file` of the custom [experimental ECMAScript Module][] loader.
376
+
Specify the `module` of a custom [experimental ECMAScript Module][] loader.
377
+
`module` may be either a path to a file, or an ECMAScript Module name.
377
378
378
379
### `--max-http-header-size=size`
379
380
<!-- YAML
@@ -981,6 +982,7 @@ Node.js options that are allowed are:
981
982
*`--enable-fips`
982
983
*`--es-module-specifier-resolution`
983
984
*`--experimental-exports`
985
+
*`--experimental-loader`
984
986
*`--experimental-modules`
985
987
*`--experimental-policy`
986
988
*`--experimental-repl-await`
@@ -998,7 +1000,6 @@ Node.js options that are allowed are:
0 commit comments