-
-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v3 #306
Merged
Merged
v3 #306
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BREAKING CHANGE: exports map and bundled files
BREAKING CHANGE: Increase supported Node.js to v16
BREAKING CHANGE: Default value of loader now auto-detects which loader to use based on the extension of the file
BREAKING CHANGE: `ESBuildMinifyPlugin` renamed to `EsbuildPlugin`; `MinifyPluginOptions` renamed to `EsbuildPluginOptions`
BREAKING CHANGE: Plugin default format is now `iife` when Webpack's target is `web` & esbuild's target is below `esnext`
BREAKING CHANGE: `tsconfig.json` is now only applied to files it matches (via `include`/`exclude`/`files`)
🎉 This PR is included in version 3.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
closes #275
fixes #139
fixes #114
Remaining work
get-tsconfig
&tsx
to stableesbuild-loader-examples
with test releaseMigration 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:You no longer need to pass in
loader
to the loader. It will now detect which loader to use based on the file extension. This also means you can consolidateesbuild-loader
rules for different file types into one.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