doc: clarify that --require only supports cjs

Fixes: https://github.com/nodejs/node/issues/35103

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
James M Snell authored and Danielle Adams committed 2021-01-12 07:10:45 -05:00
1 parent c6eb2b4fec
commit a7bb4da55e
1 file changed
+3
+3
View File
@@ -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