From a92aa89b8335ae865accc64c35ac2d760792aafc Mon Sep 17 00:00:00 2001 From: Tan Li Hau Date: Mon, 28 Oct 2019 10:40:06 +0800 Subject: [PATCH] fix css-vars case --- src/compiler/parse/read/style.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }