diff --git a/src/compiler/parse/read/style.ts b/src/compiler/parse/read/style.ts index 00fa1d618b..e658817a33 100644 --- a/src/compiler/parse/read/style.ts +++ b/src/compiler/parse/read/style.ts @@ -47,7 +47,7 @@ export default function read_style(parser: Parser, start: number, attributes: No } } - if (node.type === 'Declaration' && node.value.children.length === 0) { + if (node.type === 'Declaration' && node.value.type === 'Value' && node.value.children.length === 0) { this.remove(); }