Skip to content

Commit

Permalink
doc: clarify that --require only supports cjs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jasnell authored and targos committed May 1, 2021
1 parent dc15608 commit 1521a59
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/api/cli.md
Expand Up @@ -1128,6 +1128,9 @@ Preload the specified module at startup.
Follows `require()`'s module resolution
rules. `module` may be either a path to a file, or a node module name.

Only CommonJS modules are supported. Attempting to preload a
ES6 Module using `--require` will fail with an error.

### `-v`, `--version`
<!-- YAML
added: v0.1.3
Expand Down

0 comments on commit 1521a59

Please sign in to comment.