diff --git a/packages/compiler-sfc/__tests__/__snapshots__/compileScript.spec.ts.snap b/packages/compiler-sfc/__tests__/__snapshots__/compileScript.spec.ts.snap
index 80fb1f087cc..b167dea7026 100644
--- a/packages/compiler-sfc/__tests__/__snapshots__/compileScript.spec.ts.snap
+++ b/packages/compiler-sfc/__tests__/__snapshots__/compileScript.spec.ts.snap
@@ -1729,6 +1729,35 @@ const props = __props as {
+return { props, get defaults() { return defaults } }
+}
+
+})"
+`;
+
+exports[`SFC compile
+ `,
+ { isProd: true }
+ )
+ assertCode(content)
+ expect(content).toMatch(`import { mergeDefaults as _mergeDefaults`)
+ expect(content).toMatch(
+ `
+ _mergeDefaults({
+ foo: { type: Function },
+ bar: { type: Boolean },
+ baz: { type: [Boolean, Function] },
+ qux: null
+ }, { ...defaults })`.trim()
+ )
+ })
+
test('defineEmits w/ type', () => {
const { content } = compile(`