fix(compiler-sfc): should keep template nodes with no content (#2468)
close #2463
This commit is contained in:
@@ -138,7 +138,7 @@ export function parse(
|
||||
if (node.type !== NodeTypes.ELEMENT) {
|
||||
return
|
||||
}
|
||||
if (!node.children.length && !hasSrc(node)) {
|
||||
if (!node.children.length && !hasSrc(node) && node.tag !== 'template') {
|
||||
return
|
||||
}
|
||||
switch (node.tag) {
|
||||
|
||||
Reference in New Issue
Block a user