Skip to content

Commit

Permalink
doc: clarify that --require only supports cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
jasnell committed Jan 5, 2021
1 parent 64a4001 commit ba1b04b
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 @@ -1211,6 +1211,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 ba1b04b

Please sign in to comment.