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 <[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]>
  • 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
Original file line number Diff line number Diff line change
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.