npm / esbuild-loader
esbuild-loader
What changed in esbuild-loader 3 to 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
7 breaking1 deprecations1 new APIs and options1 behavior and defaults1 tooling2 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initesbuild-loader 45 changes
Breaking changes 2
The plugin no longer minifies by default; use it in the minimizer to enable minification by default.
A tsconfig passed by path is applied regardless of whether it matches.
Deprecations 1
Warns when define is used with eval-based devtools.
Tooling 1
esbuild-loader now supports esbuild 0.28.
Fixes and other changes 1
Multiple tsconfigs can now be specified.
esbuild-loader 38 changes
Breaking changes 5
Replaces ESBuildMinifyPlugin as the general esbuild plugin interface for minifying and transforming.
Replaces MinifyPluginOptions as the options type for EsbuildPlugin.
EsbuildPlugin defaults to iife when Webpack's target is web and esbuild's target is below esnext, preventing window pollution.
Node.js v16 is now the minimum supported version.
The sourcemap option has been removed.
New APIs and options 1
Adds a tsconfig property for passing a tsconfig file; extends is resolved.
Behavior and default changes 1
The loader is now detected from the file extension, so supported file types no longer need an explicit loader option.
Fixes and other changes 1
The tsconfig applies only to files matching its includes, excludes, or files; TypeScript compilation still works regardless.