-
-
Notifications
You must be signed in to change notification settings - Fork 3k
fix: assets referenced via js chunks are not flagged as orphaned #14607
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 9d7ccd2 The changes in this PR will be included in the next version bump. 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 |
CodSpeed Performance ReportMerging #14607 will not alter performanceComparing Summary
Footnotes |
delucis
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.
Thanks for looking into this! Will this also work for other queries or just ?url? For example, Starlight uses ?url&no-inline: https://github.com/withastro/starlight/blob/1c3d999e05e7fea210881145efaa65f8ad837c57/packages/starlight/components/Page.astro#L32 (related bug report: withastro/starlight#3497)
… components" (withastro#14612)" This reverts commit 18552c7.
ec0a98e to
076c57d
Compare
Yes, it seems to be the same issue. i added a new case checking |
|
looks like it works now, but i really don't know if |
|
Any reviewers on this? I like css deduplication |
Changes
resolves #14604
resolves withastro/starlight#3497
reintroduces css deduplication for hydrated client components. fixes the issue that causes stylesheets imported using the
?urlor?no-inlinesuffix to be flagged as orphaned, and thus removed from the build outputfix:
viteMetadata.importedAssetsin a chunk are no longer flagged as orphaned by theinlineStylesheetspluginTesting
added a new test that imports a stylesheet using the
?urland?no-inlinesuffixes, ensuring the asset is included in the build output and referenced in the pageDocs
added a comment explaining the updated
isOrphanedlogic