Skip to content

Commit

Permalink
fix(@ngtools/webpack): fix resource dep lookup on windows
Browse files Browse the repository at this point in the history
Fix #15863
  • Loading branch information
filipesilva authored and vikerman committed Nov 6, 2019
1 parent 3f7691e commit 0fd6ed2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/ngtools/webpack/src/angular_compiler_plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1258,8 +1258,10 @@ export class AngularCompilerPlugin {
if (!this._resourceLoader) {
return [];
}
// The source loader uses TS-style forward slash paths for all platforms.
const resolvedFileName = forwardSlashPath(fileName);

return this._resourceLoader.getResourceDependencies(fileName);
return this._resourceLoader.getResourceDependencies(resolvedFileName);
}

// This code mostly comes from `performCompilation` in `@angular/compiler-cli`.
Expand Down

0 comments on commit 0fd6ed2

Please sign in to comment.