We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb01cce commit f98f0d5Copy full SHA for f98f0d5
packages/ngtools/webpack/src/paths-plugin.ts
@@ -65,8 +65,8 @@ export class TypeScriptPathsPlugin {
65
return;
66
}
67
68
- // Amd requests are not mapped
69
- if (originalRequest.startsWith('!!webpack amd')) {
+ // Ignore all webpack special requests
+ if (originalRequest.startsWith('!!')) {
70
71
72
@@ -113,6 +113,10 @@ function findReplacements(
113
});
114
115
} else if (starIndex === 0 && pattern.length === 1) {
116
+ if (potentials.length === 1 && potentials[0] === '*') {
117
+ // identity mapping -> noop
118
+ continue;
119
+ }
120
pathMapOptions.push({
121
starIndex,
122
partial: originalRequest,
0 commit comments