ignore invalid nodes

ignore invalid nodes
This commit is contained in:
Luis Tejeda
2022-06-22 17:49:31 -05:00
parent 4dab3e028d
commit eed8a2c5d3
5 changed files with 224 additions and 66 deletions

View File

@@ -4848,7 +4848,9 @@ module.exports = {
mapBundleOutput(format, parsedRootFiles) {
return (contentAndComponents) => {
let bundledFile = contentAndComponents.fileContent;
bundledFile.components = contentAndComponents.components;
if (!_.isEmpty(contentAndComponents.components)) {
bundledFile.components = contentAndComponents.components;
}
if (!format) {
let rootFormat = parsedRootFiles.find((inputRoot) => {
return inputRoot.fileName === contentAndComponents.fileName;