diff --git a/packages/ngtools/webpack/src/paths-plugin.ts b/packages/ngtools/webpack/src/paths-plugin.ts index 72bd0e4abd22..a6b23abd811b 100644 --- a/packages/ngtools/webpack/src/paths-plugin.ts +++ b/packages/ngtools/webpack/src/paths-plugin.ts @@ -141,10 +141,16 @@ export class TypeScriptPathsPlugin { return; } + // Absolute requests are not mapped + if (path.isAbsolute(originalRequest)) { + callback(); + + return; + } + switch (originalRequest[0]) { case '.': - case '/': - // Relative or absolute requests are not mapped + // Relative requests are not mapped callback(); return;