ESM loader for Node.js that transforms imports using ESBuild, supporting TypeScript, JSX, and modern JavaScript. Current stable version is 0.3.3 (major version zero, so minor versions may include breaking changes). Requires Node.js >=16.17.0 and ESBuild as a peer dependency. It uses Node.js module customization hooks (--import) for transparent transformation without a build step. Alternative to ts-node, tsx, or jiti; focuses purely on ESBuild integration.
npm install esbuild-esm-loaderVerified import paths — ran on the pinned version, not inferred.
Shows how to use the loader via --import flag to transform TSX file on the fly with ESBuild.
Lock to patch version or pin with exact version.
Use --import=esbuild-esm-loader/register instead of --experimental-loader.
Use only one ESM loader at a time unless chaining is supported.
Run npm install esbuild alongside esbuild-esm-loader.
npm install esbuild
Use import syntax or switch to dynamic import.
Suppress with --no-warnings, but ignore as non-critical.