Skip to content

Conversation

@maiieul
Copy link
Member

@maiieul maiieul commented Sep 21, 2025

What is it?

  • Bug

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.onlyExplicitManualChunks feature 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

  • My code follows the developer guidelines of this project
  • I performed a self-review of my own code
  • I added a changeset with pnpm change
  • I made corresponding changes to the Qwik docs
  • I added new tests to cover the fix / functionality

@maiieul maiieul requested a review from a team as a code owner September 21, 2025 18:10
@changeset-bot
Copy link

changeset-bot bot commented Sep 21, 2025

🦋 Changeset detected

Latest commit: 76e7f0e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@builder.io/qwik Minor
eslint-plugin-qwik Minor
@builder.io/qwik-city Minor
create-qwik Minor

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

@maiieul maiieul self-assigned this Sep 21, 2025
@maiieul maiieul moved this from Backlog to Waiting For Review in Qwik Development Sep 21, 2025
@maiieul maiieul force-pushed the fix-manualChunks-merging branch from aa4e8f4 to 3a82933 Compare September 21, 2025 19:34
@pkg-pr-new
Copy link

pkg-pr-new bot commented Sep 21, 2025

Open in StackBlitz

npm i https://pkg.pr.new/@builder.io/qwik@7982
npm i https://pkg.pr.new/@builder.io/qwik-city@7982
npm i https://pkg.pr.new/eslint-plugin-qwik@7982
npm i https://pkg.pr.new/create-qwik@7982

commit: 76e7f0e

@github-actions
Copy link
Contributor

github-actions bot commented Sep 21, 2025

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
qwik-docs ✅ Ready (View Log) Visit Preview 76e7f0e

@maiieul maiieul force-pushed the fix-manualChunks-merging branch from 3a82933 to a8a7494 Compare September 21, 2025 20:00
@maiieul maiieul force-pushed the fix-manualChunks-merging branch from a8a7494 to 1ef8eb2 Compare September 21, 2025 20:25
gioboa
gioboa previously approved these changes Sep 22, 2025
Copy link
Member

@gioboa gioboa left a 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

@maiieul maiieul force-pushed the fix-manualChunks-merging branch from 618adcf to 854d753 Compare September 22, 2025 21:30
Copy link
Member

@wmertens wmertens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wmertens wmertens merged commit 2657dcc into QwikDev:main Sep 24, 2025
94 of 109 checks passed
@github-project-automation github-project-automation bot moved this from Waiting For Review to Done in Qwik Development Sep 24, 2025
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.`
Copy link
Member

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 💡

@github-actions github-actions bot mentioned this pull request Oct 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[🐞] over-preloading due to inaccurate bundle-graph static import graph

3 participants