Skip to content

Commit 9d35b92

Browse files
committed
doc: clarify that --require only supports cjs
Fixes: #35103 PR-URL: #36806 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Beth Griggs <bgriggs@redhat.com> Reviewed-By: Harshitha K P <harshitha014@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 4be66ca commit 9d35b92

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)