-
Notifications
You must be signed in to change notification settings - Fork 1.4k
fix: over-preloading due to inaccurate bundle-graph static import graph #7982
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
Conversation
🦋 Changeset detectedLatest commit: 76e7f0e The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
aa4e8f4 to
3a82933
Compare
commit: |
built with Refined Cloudflare Pages Action⚡ Cloudflare Pages Deployment
|
3a82933 to
a8a7494
Compare
a8a7494 to
1ef8eb2
Compare
gioboa
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's great 👏 @maiieul
618adcf to
854d753
Compare
wmertens
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| outputOpts.onlyExplicitManualChunks = true; | ||
| } else { | ||
| console.warn( | ||
| `⚠️ We detected that you're using a Rollup version prior to 4.52.0 (${version}). For the latest and greatest, we recommend to let Vite install the latest version for you, or manually install the latest version of Rollup in your project if that doesn't work. It will enable the new Rollup \`outputOpts.onlyExplicitManualChunks\` feature flag, which improves preloading performance and reduces cache invalidation for a snappier user experience.` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one 👏 we can add a link to their official doc 💡

What is it?
Description
Fixes #7882
Installs Rollup 4.52 and marks it as a peer dep. Warns the developers that they should update to get the new
output.onlyExplicitManualChunksfeature working on their project.The first bundle won't get non specified dependencies merged into its manualChunk anymore. This reduces over-preloading for that bundle and cache invalidation.
See rollup/rollup#6087 for more info on
onlyExplicitManualChunks.We can remove this code when we'll update qwik to Rollup 5.
Checklist
pnpm change