swc-jit v0.2.0 provides a just-in-time transpiler for Node.js using the experimental loader API, allowing TypeScript files to be executed directly without precompilation. It integrates with SWC for fast transpilation and supports source maps for debugging. The package is designed as a lighter alternative to ts-node, leveraging SWC's speed. However, it relies on Node's experimental loaders, which may change across Node versions. The package has no recent updates and may be considered in maintenance mode.
npm install swc-jitNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs and runs a TypeScript file directly using Node's experimental loader with source maps.
Use a stable alternative like ts-node or @swc-node/register for production.
Consider using @swc-node/register or tsx as maintained alternatives.
Always pass both flags: node --experimental-loader swc-jit --enable-source-maps index.ts
Run `npm install swc-jit` in the project directory.
Use Node >=12.17.0 and ensure --experimental-loader is correctly specified.