From 2b2c1d7e19978633c04025dced8cbe14663b432f Mon Sep 17 00:00:00 2001 From: Rob Wormald Date: Thu, 27 Oct 2016 19:36:48 -0400 Subject: [PATCH 1/2] fix(compiler): update codegen API --- packages/webpack/src/plugin.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/webpack/src/plugin.ts b/packages/webpack/src/plugin.ts index f01ae0fe7952..82f0f1649094 100644 --- a/packages/webpack/src/plugin.ts +++ b/packages/webpack/src/plugin.ts @@ -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. @@ -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) { From 8fbd47b3468e24dc7ebc10174ed655a5479d0b9a Mon Sep 17 00:00:00 2001 From: Mike Brocchi Date: Fri, 28 Oct 2016 09:21:31 -0400 Subject: [PATCH 2/2] Update plugin.ts --- packages/webpack/src/plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/webpack/src/plugin.ts b/packages/webpack/src/plugin.ts index 82f0f1649094..ed6f78c849c9 100644 --- a/packages/webpack/src/plugin.ts +++ b/packages/webpack/src/plugin.ts @@ -239,7 +239,7 @@ export class AotPlugin { return lazyRoutes; }, {}); }) - .then(() => cb(), (err:any) => cb(err)); + .then(() => cb(), (err: any) => cb(err)); } private _resolveModule(module: ModuleRoute, containingFile: string) {