Skip to content

Commit

Permalink
chore(compiler-sfc): remove unused variable (#12750)
Browse files Browse the repository at this point in the history
  • Loading branch information
jh-leong authored Jan 21, 2025
1 parent 0f12fb7 commit 2921685
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/compiler-sfc/src/compileScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 <script> tags.`)
Expand Down Expand Up @@ -740,12 +738,6 @@ export function compileScript(
for (const key in setupBindings) {
ctx.bindingMetadata[key] = setupBindings[key]
}
// known ref bindings
if (refBindings) {
for (const key of refBindings) {
ctx.bindingMetadata[key] = BindingTypes.SETUP_REF
}
}

// 7. inject `useCssVars` calls
if (
Expand Down

0 comments on commit 2921685

Please sign in to comment.