diff --git a/packages/compiler-sfc/src/compileScript.ts b/packages/compiler-sfc/src/compileScript.ts index fee05beed96..962b7bc7936 100644 --- a/packages/compiler-sfc/src/compileScript.ts +++ b/packages/compiler-sfc/src/compileScript.ts @@ -170,8 +170,6 @@ export function compileScript( const scriptLang = script && script.lang const scriptSetupLang = scriptSetup && scriptSetup.lang - let refBindings: string[] | undefined - if (!scriptSetup) { if (!script) { throw new Error(`[@vue/compiler-sfc] SFC contains no