Skip to content

Commit a7bb4da

Browse files
jasnelldanielleadams
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 c6eb2b4 commit a7bb4da

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
@@ -1211,6 +1211,9 @@ Preload the specified module at startup.
12111211
Follows `require()`'s module resolution
12121212
rules. `module` may be either a path to a file, or a node module name.
12131213

1214+
Only CommonJS modules are supported. Attempting to preload a
1215+
ES6 Module using `--require` will fail with an error.
1216+
12141217
### `-v`, `--version`
12151218
<!-- YAML
12161219
added: v0.1.3

0 commit comments

Comments
 (0)