diff --git a/packages/compiler-sfc/src/prefixIdentifiers.ts b/packages/compiler-sfc/src/prefixIdentifiers.ts index a756b4ba6e..01ef3a3ad2 100644 --- a/packages/compiler-sfc/src/prefixIdentifiers.ts +++ b/packages/compiler-sfc/src/prefixIdentifiers.ts @@ -64,7 +64,7 @@ export function prefixIdentifiers( s.prependRight( node.start!, `var _vm=this,_c=_vm._self._c${ - isScriptSetup ? `,_setup=_vm._setupProxy;` : `;` + isScriptSetup ? `,_setup=_vm._self._setupProxy;` : `;` }` ) }