unstale

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 init

@unstale/cli on npm

esbuild-loader 45 changes

Breaking changes 2

  • The plugin no longer minifies by default; use it in the minimizer to enable minification by default.

    4.0.0release notes

  • A tsconfig passed by path is applied regardless of whether it matches.

    4.0.0release notes

Deprecations 1

  • Warns when define is used with eval-based devtools.

    4.4.2release notes

Tooling 1

Fixes and other changes 1

esbuild-loader 38 changes

Breaking changes 5

  • Replaces ESBuildMinifyPlugin as the general esbuild plugin interface for minifying and transforming.

    3.0.0release notes

  • Replaces MinifyPluginOptions as the options type for EsbuildPlugin.

    3.0.0release notes

  • EsbuildPlugin defaults to iife when Webpack's target is web and esbuild's target is below esnext, preventing window pollution.

    3.0.0release notes

  • Node.js v16 is now the minimum supported version.

    3.0.0release notes

  • The sourcemap option has been removed.

    3.0.0release notes

New APIs and options 1

  • Adds a tsconfig property for passing a tsconfig file; extends is resolved.

    3.0.0release notes

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.

    3.0.0release notes

Fixes and other changes 1

  • The tsconfig applies only to files matching its includes, excludes, or files; TypeScript compilation still works regardless.

    3.0.0release notes