Skip to content

Commit b179095

Browse files
committed
generateComponentPreload: Add missing flatten
1 parent cdcbd4c commit b179095

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/tasks/bundlers/generateComponentPreload.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ module.exports = function({workspace, dependencies, options}) {
107107
}));
108108
})
109109
.then((processedResources) => {
110+
return Array.prototype.concat.apply([], processedResources);
111+
}).then((processedResources) => {
110112
return Promise.all(processedResources.map((resource) => {
111113
return workspace.write(resource[0]);
112114
}));

0 commit comments

Comments
 (0)