Update dependency esbuild-loader to v3 #1650
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^2.21.0
->^3.0.1
Release Notes
esbuild-kit/esbuild-loader
v3.0.1
Compare Source
Performance Improvements
sourceAndMap()
when source maps are enabled (#316) (5c97454)v3.0.0
Compare Source
Migration guide
ESBuildMinifyPlugin
was renamed toEsbuildPlugin
to indicate it can be used as a general interface to esbuild (not just a minifier, but transformer).Import
EsbuildPlugin
instead:.js
,.jsx
,.ts
,.tsx
,.css
files, you no longer need to set theloader
option becauseesbuild-loader
can now detect how to handle them based on the extension. This also means you can consolidateesbuild-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', }, }, ], },
You can now use the
tsconfig
property to pass in a tsconfig file, and it will even resolveextends
tsconfig.json
includes
/excludes
/files
are now respected so it will only apply thetsconfig.json
to matching files. However, TypeScript compilation will always work regardless oftsconfig.json
.If Webpack's target is
web
,EsbuildPlugin
will default to usingformat: 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
sourcemap
option (#305) (53cbc73)ESBuildMinifyPlugin
toEsbuildPlugin
(#307) (b052cdd)Continuous Integration
Features
tsconfig
option (#311) (92b49e9)format
toiife
(a9e8e7e)BREAKING CHANGES
tsconfig.json
is now only applied to files it matches (viainclude
/exclude
/files
)iife
when Webpack's target isweb
& esbuild's target is belowesnext
ESBuildMinifyPlugin
renamed toEsbuildPlugin
;MinifyPluginOptions
renamed toEsbuildPluginOptions
sourcemap
option removedConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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.
This PR has been generated by Mend Renovate. View repository job log here.