We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
yyx990803
Learn more about funding links in repositories.
Report abuse
1 parent 36bd9b0 commit c73847fCopy full SHA for c73847f
packages/runtime-core/src/compat/component.ts
@@ -18,6 +18,15 @@ export function convertLegacyComponent(
18
19
// 2.x constructor
20
if (isFunction(comp) && comp.cid) {
21
+ // #7766
22
+ if (comp.render) {
23
+ // only necessary when compiled from SFC
24
+ comp.options.render = comp.render
25
+ }
26
+ // copy over internal properties set by the SFC compiler
27
+ comp.options.__file = comp.__file
28
+ comp.options.__hmrId = comp.__hmrId
29
+ comp.options.__scopeId = comp.__scopeId
30
comp = comp.options
31
}
32
0 commit comments