From 1521a590024cfd20d6ee1bf328d55fb59c1ed1ed Mon Sep 17 00:00:00 2001 From: James M Snell Date: Tue, 5 Jan 2021 12:29:36 -0800 Subject: [PATCH] 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 Reviewed-By: Antoine du Hamel Reviewed-By: Beth Griggs Reviewed-By: Harshitha K P Reviewed-By: Daijiro Wachi Reviewed-By: Anna Henningsen --- doc/api/cli.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/api/cli.md b/doc/api/cli.md index 54d8e6fa0bb68a..886d17c6d5e185 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -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`