Skip to content

fix: detect shared chunks via moduleIds and imported css instead of isDynamicEntry - #2275

Merged
birkskyum merged 2 commits into
mainfrom
fix-vite8-shared-chunk-css
Aug 2, 2026
Merged

fix: detect shared chunks via moduleIds and imported css instead of isDynamicEntry#2275
birkskyum merged 2 commits into
mainfrom
fix-vite8-shared-chunk-css

Conversation

@katywings

Copy link
Copy Markdown
Contributor

What is the current behavior?

Shared chunk css hasn't been server rendered in production as of late, resulting in flashes of unstyled content. Probably caused by the upgrade to vite 8, shared chunks no longer are being flagged as dynamic entry, causing them to not be picked up by the shared chunk id remapping logic.

Screenshot_20260801_215023

What is the new behavior?

Shared chunk css is being server rendered again in production. The remapping logic has being updated, to detect shared chunks based on quantity of included modules + imported css, instead of isDynamicEntry.

Screenshot_20260801_215156

@katywings katywings self-assigned this Aug 1, 2026
@changeset-bot

changeset-bot Bot commented Aug 1, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 79c6f30

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

This PR includes changesets to release 1 package
Name Type
@solidjs/start Patch

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

@netlify

netlify Bot commented Aug 1, 2026

Copy link
Copy Markdown

Deploy Preview for solid-start-landing-page ready!

Name Link
🔨 Latest commit 79c6f30
🔍 Latest deploy log https://app.netlify.com/projects/solid-start-landing-page/deploys/6a6e8a15bd949000089585cf
😎 Deploy Preview https://deploy-preview-2275--solid-start-landing-page.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@pkg-pr-new

pkg-pr-new Bot commented Aug 1, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@solidjs/start@2275

commit: 79c6f30

@katywings

katywings commented Aug 1, 2026

Copy link
Copy Markdown
Contributor Author

P.S. @ryansolid, if this is being accepted, the same changes probably have to be applied in the Solid v2 manifest logic

@katywings
katywings force-pushed the fix-vite8-shared-chunk-css branch from dd1a6dc to 500b154 Compare August 1, 2026 20:07
Comment thread packages/start/src/config/lazy.ts
@birkskyum
birkskyum merged commit 6581877 into main Aug 2, 2026
11 checks passed
@birkskyum
birkskyum deleted the fix-vite8-shared-chunk-css branch August 2, 2026 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants