File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1072,12 +1072,13 @@ Modules preloaded with `--require` will run before modules preloaded with `--imp
1072
1072
added: v12.0.0
1073
1073
-->
1074
1074
1075
- This configures Node.js to interpret string input as CommonJS or as an ES
1076
- module. String input is input via ` --eval ` , ` --print ` , or ` STDIN ` .
1075
+ This configures Node.js to interpret ` --eval ` or ` STDIN ` input as CommonJS or
1076
+ as an ES module. Valid values are ` "commonjs" ` or ` "module" ` . The default is
1077
+ ` "commonjs" ` unless [ ` --experimental-default-type=module ` ] [ ] is used.
1077
1078
1078
- Valid values are ` "commonjs" ` and ` "module" ` . The default is ` "commonjs" ` .
1079
-
1080
- The REPL does not support this option .
1079
+ The REPL does not support this option. Usage of ` --input-type=module ` with
1080
+ [ ` --print ` ] [ ] will throw an error, as ` --print ` does not support ES module
1081
+ syntax .
1081
1082
1082
1083
### ` --insecure-http-parser `
1083
1084
@@ -2864,6 +2865,7 @@ done
2864
2865
[ `--import` ] : #--importmodule
2865
2866
[ `--openssl-config` ] : #--openssl-configfile
2866
2867
[ `--preserve-symlinks` ] : #--preserve-symlinks
2868
+ [ `--print` ] : #-p---print-script
2867
2869
[ `--redirect-warnings` ] : #--redirect-warningsfile
2868
2870
[ `--require` ] : #-r---require-module
2869
2871
[ `Atomics.wait()` ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/wait
You can’t perform that action at this time.
0 commit comments