fix(compiler-sfc): should ignore nodes with no children (#464)
This commit is contained in:
@@ -81,6 +81,9 @@ export function parse(
|
||||
if (node.type !== NodeTypes.ELEMENT) {
|
||||
return
|
||||
}
|
||||
if (!node.children.length) {
|
||||
return
|
||||
}
|
||||
switch (node.tag) {
|
||||
case 'template':
|
||||
if (!sfc.template) {
|
||||
|
||||
Reference in New Issue
Block a user