Skip to content

Commit c3f5a7b

Browse files
committed
update program entry point docs
1 parent 8631bf7 commit c3f5a7b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/api/cli.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ If a file is found, its path will be passed to the
3333

3434
* The program was started with a command-line flag that forces the entry
3535
point to be loaded with ECMAScript module loader, such as `--import`.
36-
* The file has an `.mjs` extension.
36+
* The file has an `.mjs`, `.mts` (with `--experimental-strip-types`) or `.wasm`
37+
(with `--experimental-wasm-modules`) extension.
3738
* The file does not have a `.cjs` extension, and the nearest parent
3839
`package.json` file contains a top-level [`"type"`][] field with a value of
3940
`"module"`.

0 commit comments

Comments
 (0)