Skip to content

Commit 317654b

Browse files
committed
chore: fix codegen error due to scopeId deprecation change
1 parent a27d5cb commit 317654b

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

packages/compiler-core/__tests__/__snapshots__/scopeId.spec.ts.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function render(_ctx, _cache) {
1414
_createTextVNode(_toDisplayString(_ctx.foo), 1 /* TEXT */),
1515
_hoisted_2
1616
]))
17-
})"
17+
}"
1818
`;
1919

2020
exports[`scopeId compiler support should wrap default slot 1`] = `
@@ -29,7 +29,7 @@ export function render(_ctx, _cache) {
2929
]),
3030
_: 1 /* STABLE */
3131
}))
32-
})"
32+
}"
3333
`;
3434

3535
exports[`scopeId compiler support should wrap dynamic slots 1`] = `
@@ -56,7 +56,7 @@ export function render(_ctx, _cache) {
5656
}
5757
})
5858
]), 1024 /* DYNAMIC_SLOTS */))
59-
})"
59+
}"
6060
`;
6161

6262
exports[`scopeId compiler support should wrap named slots 1`] = `
@@ -74,5 +74,5 @@ export function render(_ctx, _cache) {
7474
]),
7575
_: 1 /* STABLE */
7676
}))
77-
})"
77+
}"
7878
`;

packages/compiler-core/src/codegen.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,6 @@ export function generate(
304304
deindent()
305305
push(`}`)
306306

307-
if (genScopeId && !isSetupInlined) {
308-
push(`)`)
309-
}
310-
311307
return {
312308
ast,
313309
code: context.code,

packages/compiler-ssr/__tests__/ssrScopeId.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe('ssr: scopeId', () => {
1515
1616
export function ssrRender(_ctx, _push, _parent, _attrs) {
1717
_push(\`<div\${_ssrRenderAttrs(_attrs)} data-v-xxxxxxx><span data-v-xxxxxxx>hello</span></div>\`)
18-
})"
18+
}"
1919
`)
2020
})
2121

@@ -45,7 +45,7 @@ describe('ssr: scopeId', () => {
4545
}),
4646
_: 1 /* STABLE */
4747
}, _parent))
48-
})"
48+
}"
4949
`)
5050
})
5151

@@ -74,7 +74,7 @@ describe('ssr: scopeId', () => {
7474
}),
7575
_: 1 /* STABLE */
7676
}, _parent))
77-
})"
77+
}"
7878
`)
7979
})
8080

@@ -122,7 +122,7 @@ describe('ssr: scopeId', () => {
122122
}),
123123
_: 1 /* STABLE */
124124
}, _parent))
125-
})"
125+
}"
126126
`)
127127
})
128128
})

0 commit comments

Comments
 (0)