Fast TypeScript/JavaScript
transformer without node-gyp
and postinstall script.
node 10 | node12 | node14 | |
---|---|---|---|
Windows x64 | ✅ | ✅ | ✅ |
macOS | ✅ | ✅ | ✅ |
Linux x64 | ✅ | ✅ | ✅ |
Fastest TypeScript
transformer.
Detail: @swc-node/core
transform RxJS
AjaxObservable.ts
to ES2015 & CommonJSJavaScript
. Benchmark code: bench
@swc-node/core x 151 ops/sec ±3.74% (77 runs sampled)
@swc/core x 107 ops/sec ±0.51% (78 runs sampled)
esbuild x 52.89 ops/sec ±1.58% (67 runs sampled)
typescript x 21.08 ops/sec ±9.68% (40 runs sampled)
Transform rxjs/AjaxObservable.ts benchmark bench suite: Fastest is @swc-node/core
Fastest jest TypeScript
transformer.
Detail: @swc-node/jest
Testing in pure
TypeScript
project, compile target isES2018
.
Test Suites: 48 passed, 48 total
Tests: 239 passed, 239 total
Snapshots: 49 passed, 49 total
Time: 49.808 s
Ran all test suites.
✨ Done in 54.35s.
Test Suites: 49 passed, 49 total
Tests: 250 passed, 250 total
Snapshots: 53 passed, 53 total
Time: 9.921 s
Ran all test suites.
✨ Done in 15.79s.
Faster ts-node/register/transpile-only
alternative.
Detail: @swc-node/register
[email protected]
latestrust@nightly
latest
yarn
cargo build --release && yarn build
yarn test