Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jan 13, 2026

This PR contains the following updates:

Package Change Age Confidence
esbuild-loader ^2.21.0^4.0.0 age confidence

Release Notes

privatenumber/esbuild-loader (esbuild-loader)

v4.4.2

Compare Source

Bug Fixes
  • warn when define is used with eval-based devtools (dfec00d)

v4.4.1

Compare Source

Bug Fixes

v4.4.0

Compare Source

Bug Fixes
  • defer to default get-tsconfig cache to pass type-check (aa4b79d)
  • remove incorrect tsconfig include pattern warning (#​1) (c5cd779)
Features

v4.3.0

Compare Source

Features

v4.2.2

Compare Source

Bug Fixes

v4.2.1

Compare Source

Bug Fixes
  • explicitly import webpack as type (3dd1107)

v4.2.0

Compare Source

Features

v4.1.0

Compare Source

Features

v4.0.3

Compare Source

Bug Fixes
Reverts

v4.0.2

Compare Source

Bug Fixes
  • plugin: mark assets as minimized only when minified (#​338) (a5fddd0)

v4.0.1

Compare Source

Bug Fixes
  • prevent webpack-merge from cloning (7d6e482)
Performance Improvements
  • upgrade get-tsconfig with caching (544f4bd)

v4.0.0

Compare Source

Bug Fixes
BREAKING CHANGES
  • tsconfig: tsconfig passed in by path is now applied regardless of whether it matches
  • plugin: No longer minifies when used in "plugin". Use in "minimizer" to enable minification by default.

v3.2.0

Compare Source

Features

v3.1.0

Compare Source

Features

v3.0.1

Compare Source

Performance Improvements
  • only call sourceAndMap() when source maps are enabled (#​316) (5c97454)

v3.0.0

Compare Source

Migration guide

  • ESBuildMinifyPlugin was renamed to EsbuildPlugin to indicate it can be used as a general interface to esbuild (not just a minifier, but transformer).
    Import EsbuildPlugin instead:
- const { ESBuildMinifyPlugin } = require('esbuild-loader')
+ const { EsbuildPlugin } = require('esbuild-loader')
  • For .js, .jsx, .ts, .tsx, .css files, you no longer need to set the loader option because esbuild-loader can now detect how to handle them based on the extension. This also means you can consolidate esbuild-loader rules for different file types into one, rather than hard-coding how to load each extension type.
 module: {
   rules: [
     {
       test: /\.[tj]sx?$/,
       loader: 'esbuild-loader',
       options: {
         target: 'es2015',
-        loader: 'tsx',
       },
     },
   ],
 },

👉 Note: For this to work, make sure to follow file extension conventions such as using .jsx/.tsx for files that contain JSX.

  • You can now use the tsconfig property to pass in a tsconfig file, and it will even resolve extends

  • tsconfig.json includes/excludes/files are now respected so it will only apply the tsconfig.json to matching files. However, TypeScript compilation will always work regardless of tsconfig.json.

  • If Webpack's target is web, EsbuildPlugin will default to using format: iife unless otherwise specified. This change was made to prevent window pollution.

  • Make sure your Node.js version is at least v16

Changes

Bug Fixes
Build System
Code Refactoring
Continuous Integration
Features
BREAKING CHANGES
  • tsconfig.json is now only applied to files it matches (via include/exclude/files)
  • plugin: Plugin default format is now iife when Webpack's target is web & esbuild's target is below esnext
  • ESBuildMinifyPlugin renamed to EsbuildPlugin; MinifyPluginOptions renamed to EsbuildPluginOptions
  • sourcemap option removed
  • Default value of loader now auto-detects which loader to use based on the extension of the file
  • Increase supported Node.js to v16
  • exports map and bundled files

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/esbuild-loader-4.x branch from f4d434c to 4b0a5ed Compare January 20, 2026 03:01
@renovate renovate bot force-pushed the renovate/esbuild-loader-4.x branch from 4b0a5ed to 580dbea Compare January 20, 2026 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant