Skip to content

Commit

Permalink
fix(compiler): update codegen API (#2919)
Browse files Browse the repository at this point in the history
Fixes #2917.
  • Loading branch information
robwormald authored and hansl committed Oct 28, 2016
1 parent b62b996 commit b50c121
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/webpack/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export class AotPlugin {
// We need to temporarily patch the CodeGenerator until either it's patched or allows us
// to pass in our own ReflectorHost.
patchReflectorHost(codeGenerator);
this._donePromise = codeGenerator.codegen()
this._donePromise = codeGenerator.codegen({transitiveModules: true})
.then(() => {
// Create a new Program, based on the old one. This will trigger a resolution of all
// transitive modules, which include files that might just have been generated.
Expand Down Expand Up @@ -239,7 +239,7 @@ export class AotPlugin {
return lazyRoutes;
}, {});
})
.then(() => cb(), (err) => cb(err));
.then(() => cb(), (err: any) => cb(err));
}

private _resolveModule(module: ModuleRoute, containingFile: string) {
Expand Down

0 comments on commit b50c121

Please sign in to comment.