Skip to content

Commit 1521a59

Browse files
jasnelltargos
authored andcommitted
doc: clarify that --require only supports cjs
Fixes: #35103 PR-URL: #36806 Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Beth Griggs <[email protected]> Reviewed-By: Harshitha K P <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent dc15608 commit 1521a59

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/api/cli.md

+3
Original file line numberDiff line numberDiff line change
@@ -1128,6 +1128,9 @@ Preload the specified module at startup.
11281128
Follows `require()`'s module resolution
11291129
rules. `module` may be either a path to a file, or a node module name.
11301130

1131+
Only CommonJS modules are supported. Attempting to preload a
1132+
ES6 Module using `--require` will fail with an error.
1133+
11311134
### `-v`, `--version`
11321135
<!-- YAML
11331136
added: v0.1.3

0 commit comments

Comments
 (0)