diff --git a/src/rebuild.ts b/src/rebuild.ts index 7200ef81..a0baf2aa 100644 --- a/src/rebuild.ts +++ b/src/rebuild.ts @@ -58,7 +58,7 @@ function getTagName(n: elementNode): string { const HOVER_SELECTOR = /([^\\]):hover/g; export function addHoverClass(cssText: string): string { - const ast = parse(cssText); + const ast = parse(cssText, {silent: true}); if (!ast.stylesheet) { return cssText; }