Skip to content

Styles start with :global() and contain ~ are removed #5499

@btamas

Description

@btamas

Describe the bug
When a style start with :global() and contain ~, it is detected as unused css and it won't be in the compiled component.

To Reproduce
https://svelte.dev/repl/f912b3cecd29433990eca1947b902184?version=3.29.0

Severity
Medium

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions