diff --git a/packages/compiler-sfc/src/compileScript.ts b/packages/compiler-sfc/src/compileScript.ts index 8039b41e1f7..abb6d8b1370 100644 --- a/packages/compiler-sfc/src/compileScript.ts +++ b/packages/compiler-sfc/src/compileScript.ts @@ -1125,7 +1125,7 @@ export function compileScript( startOffset, `\nconst ${propsIdentifier} = __props${ propsTypeDecl ? ` as ${genSetupPropsType(propsTypeDecl)}` : `` - }\n` + };\n` ) } if (propsDestructureRestId) { @@ -1133,7 +1133,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 594c909ee39..e9046ea3c7b 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