esbuild-runner (esr) is a high-speed on-the-fly transpiler for modern JavaScript, TypeScript, and JSX, powered by esbuild. It replaces slower alternatives like ts-node and babel-register for running scripts, tests, or arbitrary code without pre-building. Current version is 2.3.0-plugins.0, built on esbuild (peer dependency of any version). It offers two modes: bundling (default, one-shot esbuild invocation) and transform (file-by-file with caching via --cache flag). Useful for development workflows, Jest transforms, and VSCode debugging. Ships TypeScript definitions. No built-in plugins; the 'plugins' suffix indicates compatibility with esbuild plugins.
npm install esbuild-runner-pluginsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows CLI and programmatic usage with TypeScript, including esr binary and require hook.
Configure esbuild options in esbuild-runner.config.js to adjust target or include specific modules.
Use standard esbuild-runner (non-plugins) unless you specifically need compatibility with esbuild plugins.
Use bundle mode (default) for best performance; avoid relying on transform cache.
Use esbuild's supported syntax or consider alternative runners like tsx.
npm install --save-dev esbuild-runner
npm install --save-dev esbuild
Use require() instead of import, or use -r flag with node.
Run with -r esbuild-runner/register or use esr binary.