diff --git a/packages/compiler-sfc/src/compileScript.ts b/packages/compiler-sfc/src/compileScript.ts index 918e3f8d..f0f2b511 100644 --- a/packages/compiler-sfc/src/compileScript.ts +++ b/packages/compiler-sfc/src/compileScript.ts @@ -27,7 +27,7 @@ import { walk } from 'estree-walker' import { RawSourceMap } from 'source-map' import { CSS_VARS_HELPER, genCssVarsCode, injectCssVarsCalls } from './cssVars' import { compileTemplate, SFCTemplateCompileOptions } from './compileTemplate' -import { warnOnce } from './warn' +import { warnExperimental, warnOnce } from './warn' const DEFINE_OPTIONS = 'defineOptions' @@ -73,13 +73,8 @@ export function compileScript( ): SFCScriptBlock { const { script, scriptSetup, source, filename } = sfc - if (__DEV__ && !__TEST__ && scriptSetup) { - warnOnce( - `