fix: don't mark selector lists inside :global
with multiple items as unused
Given a component like this
<style>
:global {
a, b {
color: red;
}
}
</style>
the generated css looks like this
/* :global {*/
/* (unused) a, b*/ {
color: red;
}
/*}*/
which is wrong because there's a block without a selector.
-
-
annoyance
Regression from #15762
Fixes #15816
feat:
, fix:
, chore:
, or docs:
.packages/svelte/src
, add a changeset (npx changeset
).pnpm test
and lint the project with pnpm lint
Latest commit: 5692de7de825f1c06e122ead0309e04adcc10ed7
The changes in this PR will be included in the next version bump.
Name | Type |
---|---|
svelte | 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
pnpm add https://pkg.pr.new/svelte@15817
Thank you! I was just about to report the issue ❤️
Regression from #15762 Fixes #15816