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
@@ -395,12 +395,13 @@ Specify ways of the inspector web socket url exposure.
395
395
By default inspector websocket url is available in stderr and under `/json/list`
396
396
endpoint on `http://host:port/json/list`.
397
397
398
-
### `--loader=file`
398
+
### `--experimental-loader=module`
399
399
<!-- YAML
400
400
added: v9.0.0
401
401
-->
402
402
403
-
Specify the `file` of the custom [experimental ECMAScript Module][] loader.
403
+
Specify the `module` of a custom [experimental ECMAScript Module][] loader.
404
+
`module` may be either a path to a file, or an ECMAScript Module name.
404
405
405
406
### `--max-http-header-size=size`
406
407
<!-- YAML
@@ -1001,6 +1002,7 @@ Node.js options that are allowed are:
1001
1002
*`--enable-fips`
1002
1003
*`--es-module-specifier-resolution`
1003
1004
*`--experimental-exports`
1005
+
*`--experimental-loader`
1004
1006
*`--experimental-modules`
1005
1007
*`--experimental-policy`
1006
1008
*`--experimental-repl-await`
@@ -1018,7 +1020,6 @@ Node.js options that are allowed are:
0 commit comments