Skip to content

Commit b50c121

Browse files
robwormaldhansl
authored andcommitted
fix(compiler): update codegen API (#2919)
Fixes #2917.
1 parent b62b996 commit b50c121

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/webpack/src/plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export class AotPlugin {
207207
// We need to temporarily patch the CodeGenerator until either it's patched or allows us
208208
// to pass in our own ReflectorHost.
209209
patchReflectorHost(codeGenerator);
210-
this._donePromise = codeGenerator.codegen()
210+
this._donePromise = codeGenerator.codegen({transitiveModules: true})
211211
.then(() => {
212212
// Create a new Program, based on the old one. This will trigger a resolution of all
213213
// transitive modules, which include files that might just have been generated.
@@ -239,7 +239,7 @@ export class AotPlugin {
239239
return lazyRoutes;
240240
}, {});
241241
})
242-
.then(() => cb(), (err) => cb(err));
242+
.then(() => cb(), (err: any) => cb(err));
243243
}
244244

245245
private _resolveModule(module: ModuleRoute, containingFile: string) {

0 commit comments

Comments
 (0)