Transpile TypeScript to ESM using Node.js loader hooks, leveraging esbuild for fast compilation. Current stable version is 0.8.0. Release cadence is irregular, with updates addressing loader hook deprecations and minor features. Compared to esbuild-register, this package targets Node.js ESM (ECMAScript Modules) rather than CommonJS. It supports .ts, .tsx, and .json files, and resolves extensions automatically. Primarily used as a development tool for running TypeScript files directly with Node.js without a separate build step.
npm install esbuild-node-loaderNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows installation and running a TypeScript file directly via Node.js loader.
Use --loader (without experimental) for Node.js >=18.8.
Use Node.js >=16.12 or downgrade loader version.
Run npm install esbuild --save-dev alongside esbuild-node-loader.
Ensure Node.js >=16.12 and use --loader, not --experimental-loader.