Skip to content

Commit a66b094

Browse files
committed
fix(@ngtools/webpack): fix resource dep lookup on windows
Fix angular#15863
1 parent bc93bb9 commit a66b094

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/ngtools/webpack/src/angular_compiler_plugin.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1258,8 +1258,10 @@ export class AngularCompilerPlugin {
12581258
if (!this._resourceLoader) {
12591259
return [];
12601260
}
1261+
// The source loader uses TS-style forward slash paths for all platforms.
1262+
const resolvedFileName = forwardSlashPath(fileName);
12611263

1262-
return this._resourceLoader.getResourceDependencies(fileName);
1264+
return this._resourceLoader.getResourceDependencies(resolvedFileName);
12631265
}
12641266

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

0 commit comments

Comments
 (0)