Skip to content

Commit f2c624b

Browse files
sergey-behavoxclydin
authored andcommitted
fix(@ngtools/webpack): Do not apply ts mappings to webpack amd requests
Fix angular#758
1 parent a719c6e commit f2c624b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/ngtools/webpack/src/paths-plugin.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ export function resolveWithPaths(
4242
return;
4343
}
4444

45+
// Amd requests are not mapped
46+
if (originalRequest.startsWith('!!webpack amd')) {
47+
callback(null, request);
48+
49+
return;
50+
}
51+
4552
// check if any path mapping rules are relevant
4653
const pathMapOptions = [];
4754
for (const pattern in compilerOptions.paths) {

0 commit comments

Comments
 (0)