diff --git a/website/docs/options.md b/website/docs/options.md index 0c59f203b..3ba675630 100644 --- a/website/docs/options.md +++ b/website/docs/options.md @@ -403,6 +403,8 @@ Requires [`esm`](#esm) to be enabled. *Default:* `explicit`
+This feature has been removed since Node 19 version. + ## API Options The API includes [additional options](https://typestrong.org/ts-node/api/interfaces/RegisterOptions.html) not shown here. diff --git a/website/docs/performance.md b/website/docs/performance.md index 21704761e..a54979a84 100644 --- a/website/docs/performance.md +++ b/website/docs/performance.md @@ -6,7 +6,9 @@ These tricks will make ts-node faster. ## Skip typechecking -It is often better to use `tsc --noEmit` to typecheck as part of your tests or linting. In these cases, ts-node can skip typechecking. +It is often better to typecheck as part of your tests or linting. You can use `tsc --noEmit` to do this. In these cases, ts-node can skip typechecking making it much faster. + +To skip typechecking in ts-node, do one of the following: * Enable [swc](./swc.md) * This is by far the fastest option @@ -14,6 +16,8 @@ It is often better to use `tsc --noEmit` to typecheck as part of your tests or l ## With typechecking +If you absolutely must use ts-node for typechecking: + * Avoid dynamic `require()` which may trigger repeated typechecking; prefer `import` * Try with and without `--files`; one may be faster depending on your project * Check `tsc --showConfig`; make sure all executed files are included