fix(cli): missing style deps if component doesn't have style

This commit is contained in:
陈嘉涵
2019-12-20 21:47:07 +08:00
parent 5389bcf4fb
commit b9a077b779
2 changed files with 7 additions and 1 deletions

View File

@@ -99,7 +99,7 @@ export async function genStyleDepsMap() {
const map = {} as DepsMap;
components.filter(checkStyleExists).forEach(component => {
components.forEach(component => {
map[component] = analyzeComponentDeps(component);
});