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
  • Loading branch information
filipesilva authored and vikerman committed Nov 6, 2019
1 parent 8f9b3c7 commit c64f3d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 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 c64f3d0

Please sign in to comment.