Skip to content

Commit

Permalink
Update performance.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cspotcode committed Jul 25, 2023
1 parent 0e0da59 commit 80766e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/docs/performance.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ These tricks will make ts-node faster.

## Skip typechecking

It is often better to typecheck as part of your tests or linting. You can run `tsc --noEmit` to do this. In these cases, ts-node can skip typechecking, making it much faster.
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:

Expand All @@ -16,7 +16,7 @@ To skip typechecking in ts-node, do one of the following:

## With typechecking

If you absolutely must typecheck in ts-node:
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
Expand Down

0 comments on commit 80766e3

Please sign in to comment.