Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Jan 16, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

ematipico and others added 7 commits January 16, 2026 11:14
* fix(css): prevent double-bundling when CSS imported from multiple locations

Fixes #14991

When CSS was imported in both a page's frontmatter and a component's script tag,
it was bundled twice in production builds. This happened because the CSS plugins
run for both SSR and client builds, adding CSS to the same pageData.styles array.

The fix adds content-based deduplication that checks existing styles before adding
new ones - comparing by content for inline CSS and by src for external CSS.

* chore: update pnpm-lock.yaml for new test fixture

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
)

* test: add failing case for url imports

* fix: files added to chunks are not orphaned

* docs: add comment explaining updated orphaned logic

* docs: add changeset

* fix: only check importedAssets

* test: add case for ?url&no-inline import

* Revert "Revert "fix(build): Prevent duplicate CSS for hydrated client components" (#14612)"

This reverts commit 18552c7.

* docs: update changeset

* docs: update changeset

* fix: lockfile

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
@pull pull bot locked and limited conversation to collaborators Jan 16, 2026
@pull pull bot added the ⤵️ pull label Jan 16, 2026
@pull pull bot merged commit 94ac011 into code:main Jan 16, 2026
6 of 7 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants