Skip to content

Commit

Permalink
Update doc/api/cli.md
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-ippolito authored Dec 17, 2024
1 parent 1dd1cb5 commit 4ce891c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,7 @@ as an ES module. Valid values are `"commonjs"`, `"module"`, `"module-typescript"
The `"-typescript"` values are available only in combination with the flag `--experimental-strip-types`.
The default is `"commonjs"`.

If `--input-type`is not provided, Node.js will try to run the code as JavaScript,
If `--experimental-strip-types` is enabled and `--input-type`is not provided, Node.js will first try to run the code as JavaScript,
then it will try to run the code as TypeScript.
When using TypeScript, the `--input-type=type` flag should be used,
to reduce the overhead of multiple syntax detection.
Expand Down

0 comments on commit 4ce891c

Please sign in to comment.