4 ms·
ts-node has all of these features too?
by __alexs 3y ago
ts-node has all of these features too?
- xdennis 3y agoYes, but it's slower. Here are the times for running a script that just prints hello. $ time bun hello.ts real 0m0.015s user 0m0.008s sys 0m0.008s $ time ts-node hello.ts real 0m0.727s user 0m1.534s sys 0m0.077s
- tubthumper8 3y agots-node does type checking by default using `tsc`. Bun does not, so this isn't an equivalent comparison
- __alexs 3y agoNow try with SWC enabled.