stylis
stylis copied to clipboard
Better leave `&` as original code when there's no CSS Selector
Issue
When using & and there's no CSS Selector, the & has been removed in the compiled code.
Since nesting CSS & becomes official in early 2023, It would be better not to remove it.
Input
&.red { background-color: red }
Compiled to
.red { background-color: red }
Expect
Input
&.red { background-color: red }
Compiled to
&.red { background-color: red }