From a7bb4da55e05151107bd012a4c02f2f8be48dcd7 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 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`