-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
feat: esbuild 0.17 #11908
feat: esbuild 0.17 #11908
Conversation
I think this make sense for the next minor too. The first case is pretty strange and doesn't fit |
2b92201
to
a2863ae
Compare
/ecosystem-ci run |
📝 Ran ecosystem CI: Open
|
vite-setup-catalogue is failing with main branch and I guess it's a problem on vite-setup-catalogue side. |
I also think we should upgrade on the next minor. Breaking changes in esbuild and rollup in our minors have also happened in the past. Maybe in Vite 5 we should formalize that in Vite minors, we may upgrade esbuild and rollup and users should pin Vite to the current minor if they depend on esbuild plugins or rollup types (that we saw breaking in minors). Related: clarify in Vite 5 a policy for Node.js minors. |
Description
This PR updates esbuild to 0.17.5 from 0.16.14. v0.17.0 has some breaking changes. The breaking changes are:
context
APIbuild.esbuild.serve
/build.esbuild.build + rebuild
, it will break.incremental: true
. Also we don't expect users to setoptimizeDeps.esbuildOptions.incremental: true
.onRebuild
watch mode callback was removedoptimizeDeps.esbuildOptions.watch
, I think we can ignore this one.FYI type definition diff: evanw/esbuild@v0.16.17...v0.17.0#diff-53664fbdfc62af3b722184289b51ff956243fc8f7e81fb9d0548219307587f7c
Because of the first change, it's technically a breaking change. That said, I guess most plugins doesn't use these and the benefit of bumping the version in minor is larger than little breakage.
Also upgrading esbuild will unlock
context.dispose
API that will make #11243 straight forward.close #11704
Additional context
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).