Skip to content

Commit a1b6cb7

Browse files
authored
optimize package manager
1 parent 9d9e15b commit a1b6cb7

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/PackageManager.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,18 @@ export class PackageManager {
428428
passCount++;
429429
}
430430

431+
// 1. compiler
432+
// 2. compilerOption
433+
// 3. Dvendor
434+
// 4. Dname
435+
// 5. condition
436+
// ---
437+
// if satisfy above conditions, passCount will be 5
431438
if (passCount === 5) {
439+
// if this 'accept' is require a component, append it.
440+
if (con.component) {
441+
comp_requires.push(con.component);
442+
}
432443
return;
433444
}
434445
}

0 commit comments

Comments
 (0)