diff --git a/packages/compiler-sfc/src/compileScript.ts b/packages/compiler-sfc/src/compileScript.ts index db04dbef333..21fc3eb2ad1 100644 --- a/packages/compiler-sfc/src/compileScript.ts +++ b/packages/compiler-sfc/src/compileScript.ts @@ -1122,7 +1122,7 @@ export function compileScript( startOffset, `\nconst ${propsIdentifier} = __props${ propsTypeDecl ? ` as ${genSetupPropsType(propsTypeDecl)}` : `` - }\n` + };\n` ) } if (propsDestructureRestId) { @@ -1130,7 +1130,7 @@ export function compileScript( startOffset, `\nconst ${propsDestructureRestId} = ${helper( `createPropsRestProxy` - )}(__props, ${JSON.stringify(Object.keys(propsDestructuredBindings))})\n` + )}(__props, ${JSON.stringify(Object.keys(propsDestructuredBindings))});\n` ) } diff --git a/packages/compiler-sfc/test/__snapshots__/compileScript.spec.ts.snap b/packages/compiler-sfc/test/__snapshots__/compileScript.spec.ts.snap index bb52a66b907..8cf67a1a3d4 100644 --- a/packages/compiler-sfc/test/__snapshots__/compileScript.spec.ts.snap +++ b/packages/compiler-sfc/test/__snapshots__/compileScript.spec.ts.snap @@ -212,7 +212,7 @@ export default { props: propsModel, setup(__props) { -const props = __props +const props = __props; @@ -229,7 +229,7 @@ export default { props: {}, setup(__props) { -const props = __props +const props = __props; return { props, x } @@ -245,7 +245,7 @@ exports[`SFC compile