Skip to content

Commit 1cbb352

Browse files
committed
ensure that ngcc runs before bit build
1 parent ae7f2e3 commit 1cbb352

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/ng-packagr/ng-packagr.compiler.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,9 @@ export class NgPackagrCompiler implements Compiler {
223223
const capsules = context.capsuleNetwork.seedersCapsules;
224224
const componentsResults: ComponentResult[] = [];
225225

226+
// Process all node_modules folders (only works if the modules are hoisted)
227+
this.nodeModulesPaths.forEach(path => this.ngccProcessor?.process(path));
228+
226229
await Promise.all(
227230
context.components.map(async(component: Component) => {
228231
const capsule = capsules.getCapsule(component.id);

0 commit comments

Comments
 (0)