Skip to content

Commit 7103bde

Browse files
committed
fix(runtime-core): support extends template for runtime compiler
1 parent 0cf9ae6 commit 7103bde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime-core/src/component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ export function finishComponentSetup(
788788
(__COMPAT__ &&
789789
instance.vnode.props &&
790790
instance.vnode.props['inline-template']) ||
791-
Component.template
791+
Component.template || instance.ctx.$options.template
792792
if (template) {
793793
if (__DEV__) {
794794
startMeasure(instance, `compile`)

0 commit comments

Comments
 (0)