diff --git a/website/docs/scope.md b/website/docs/scope.md index 4b267821c..834403dcd 100644 --- a/website/docs/scope.md +++ b/website/docs/scope.md @@ -13,10 +13,12 @@ options to configure scoping, so that ts-node transforms only the files in your ## File extensions -`.js` and `.jsx` are only transformed when [`allowJs`](https://www.typescriptlang.org/docs/handbook/compiler-options.html#compiler-options) is enabled. +`.js`, `.jsx`, `.mjs`, and `.cjs` are only transformed when [`allowJs`](https://www.typescriptlang.org/docs/handbook/compiler-options.html#compiler-options) is enabled. `.tsx` and `.jsx` are only transformed when [`jsx`](https://www.typescriptlang.org/docs/handbook/jsx.html) is enabled. +`.mts`, `.cts`, `.mjs`, and `.cjs` are only transformed for TypeScript versions >= 4.5.0. + > **Warning:** > > When ts-node is used with `allowJs`, _all_ non-ignored JavaScript files are transformed by ts-node.