Skip to content

Commit 1521a59

Browse files
jasnelltargos
authored andcommittedMay 1, 2021
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 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)
Please sign in to comment.