chore: simplify

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
pull/13850/head
Paolo Ricciuti 2 years ago committed by GitHub
parent ce53bd6fd5
commit 68f71c9a41
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -47,7 +47,7 @@ function migrate_css(state) {
// since we already blank css we can't work directly on `state.str` so we will create a copy that we can update
const str = new MagicString(code);
while (!code.startsWith('</style>') && !!code.trim()) {
while (code) {
if (
code.startsWith(':has') ||
code.startsWith(':not') ||

Loading…
Cancel
Save