Skip to content

Commit 7222fbc

Browse files
committed
When resolving base template only change <extension-point> to <template> if an extension for that point was found on the child.
This allows extension points to be extended further down in the hierarchy and not necessarily in the direct children
1 parent 8a369ca commit 7222fbc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ function resolveComponent(currentSource, context) {
9090
// If a extend block matching the extension point was found, replace the point's content with the extend block's
9191
if (extendBlock) {
9292
extPoint.children = extendBlock.children;
93-
}
9493

95-
// Change extension point tag to a template tag
96-
extPoint.name = 'template';
97-
delete extPoint.attribs[options.EXT_POINT_NAME_ATTR];
94+
// Change extension point tag to a template tag
95+
extPoint.name = 'template';
96+
delete extPoint.attribs[options.EXT_POINT_NAME_ATTR];
97+
}
9898
});
9999

100100
// Resolve promise with the new generated SFC

0 commit comments

Comments
 (0)