Skip to content

Commit 68f71c9

Browse files
chore: simplify
Co-authored-by: Simon H <[email protected]>
1 parent ce53bd6 commit 68f71c9

File tree

1 file changed

+1
-1
lines changed
  • packages/svelte/src/compiler/migrate

1 file changed

+1
-1
lines changed

packages/svelte/src/compiler/migrate/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function migrate_css(state) {
4747

4848
// since we already blank css we can't work directly on `state.str` so we will create a copy that we can update
4949
const str = new MagicString(code);
50-
while (!code.startsWith('</style>') && !!code.trim()) {
50+
while (code) {
5151
if (
5252
code.startsWith(':has') ||
5353
code.startsWith(':not') ||

0 commit comments

Comments
 (0)