Skip to content

Commit

Permalink
Update test and README about tsx compatibility
Browse files Browse the repository at this point in the history
tsx has been compatible with other loaders since around the end of 3.x
and the start of 4.x when the aforementioned issue
privatenumber/tsx#264 was resolved.

Update the test to use a newer version of tsx which does not exhibit the
bug and the README to say tsx is compatible.
  • Loading branch information
galexite committed Jun 15, 2024
1 parent 7d0f56d commit 5611727
Show file tree
Hide file tree
Showing 8 changed files with 205 additions and 177 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

_**Note: For versions of node prior to v20.6.0,** "--loader" command line arguments must be used with `esmock` as demonstrated [in the wiki.][4] Current versions of node do not require "--loader"._

_**Note: Typescript loaders** `ts-node` πŸ‘ and `tsm` πŸ‘ are compatible with other loaders, [including esmock.][3] `swc` πŸ‘Ž and `tsx` πŸ‘Ž are demonstrated as **incompatible** with other loaders, including esmock._
_**Note: TypeScript loaders** `ts-node` πŸ‘, `tsm` πŸ‘ and `tsx` πŸ‘ are compatible with other loaders, [including esmock.][3] `swc-node` has, at time of writing, been demonstrated as **incompatible** with other loaders, including esmock._

`esmock` has the below signature
```js
Expand Down
Loading

0 comments on commit 5611727

Please sign in to comment.