From 9cb74960ac2f77737016b8d637549127dda74646 Mon Sep 17 00:00:00 2001 From: Evan You Date: Sat, 21 Nov 2020 23:53:32 -0500 Subject: [PATCH] chore: move style vars deprecation warning to a parse error --- packages/compiler-sfc/src/parse.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/compiler-sfc/src/parse.ts b/packages/compiler-sfc/src/parse.ts index 41662201..1df52721 100644 --- a/packages/compiler-sfc/src/parse.ts +++ b/packages/compiler-sfc/src/parse.ts @@ -11,7 +11,7 @@ import { RawSourceMap, SourceMapGenerator } from 'source-map' import { TemplateCompiler } from './compileTemplate' import { Statement } from '@babel/types' import { parseCssVars } from './cssVars' -import { warnExperimental, warnOnce } from './warn' +import { warnExperimental } from './warn' export interface SFCParseOptions { filename?: string @@ -168,9 +168,11 @@ export function parse( case 'style': const style = createBlock(node, source, pad) as SFCStyleBlock if (style.attrs.vars) { - warnOnce( - `