lukeed / tsm

TypeScript Module Loader
MIT License
1.18k stars 19 forks source link

sharing: tsm succesfully chains with another --loader #38

Closed iambumblehead closed 1 year ago

iambumblehead commented 2 years ago

The tsm and esmock loaders can be chained together. This example, uses them with node 18s new test runner to run a passing test,

node --loader=tsm --loader=esmock --test *ts

this PR adds a tsm unit-test to esmock

lukeed commented 1 year ago

Correct, Node versions 16.17.0 and 18.6.0 allow more than one --loader to be used; see history notes here

Thanks for sharing~!