From ba1b04b74567e313f127cfea9d47a3e167e1eb3c 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 --- doc/api/cli.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/api/cli.md b/doc/api/cli.md index 22bea84fb72b46..c2c2efbcc0eef8 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -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`