Skip to content

Commit

Permalink
fix(@ngtools/webpack): fix rebuild speed regression
Browse files Browse the repository at this point in the history
See #7995 (comment) for details.

Fix regression introduced in #7998
  • Loading branch information
filipesilva authored and hansl committed Oct 12, 2017
1 parent e83dd93 commit 5257673
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/@ngtools/webpack/src/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -599,8 +599,9 @@ export function ngcLoader(this: LoaderContext & { _compilation: any }, source: s
_getResourcesUrls(refactor).forEach((url: string) => {
this.addDependency(path.resolve(path.dirname(sourceFileName), url));
});
// Dependencies must use system path separator.
_getImports(refactor, compilerOptions, plugin.compilerHost, plugin.moduleResolutionCache)
.forEach((importString: string) => this.addDependency(importString));
.forEach(dep => this.addDependency(dep.replace(/\//g, path.sep)));
})
.then(() => {
if (source) {
Expand Down

0 comments on commit 5257673

Please sign in to comment.