File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -1482,12 +1482,21 @@ forked processes, or clustered processes.
14821482
14831483<!-- YAML
14841484added: v12.0.0
1485+ changes:
1486+ - version: REPLACEME
1487+ pr-url: https://github.com/nodejs/node/pull/56350
1488+ description: Add support for `-typescript` values.
1489+ - version:
1490+ - v22.7.0
1491+ - v20.19.0
1492+ pr-url: https://github.com/nodejs/node/pull/53619
1493+ description: ESM syntax detection is enabled by default.
14851494-->
14861495
14871496This configures Node.js to interpret ` --eval ` or ` STDIN ` input as CommonJS or
14881497as an ES module. Valid values are ` "commonjs" ` , ` "module" ` , ` "module-typescript" ` and ` "commonjs-typescript" ` .
14891498The ` "-typescript" ` values are not available with the flag ` --no-experimental-strip-types ` .
1490- The default is ` "commonjs" ` .
1499+ The default is no value, or ` "commonjs" ` if ` --no-experimental-detect-module ` is passed .
14911500
14921501If ` --input-type ` is not provided,
14931502Node.js will try to detect the syntax with the following steps:
You can’t perform that action at this time.
0 commit comments