Skip to content

Commit 74cd4ed

Browse files
dmitry-stepanenkodgp1130
authored andcommitted
fix(@angular/build): skip normalization of relative externals
(cherry picked from commit fc0e05f)
1 parent 7f1e8c6 commit 74cd4ed

File tree

1 file changed

+8
-1
lines changed
  • packages/angular/build/src/builders/application

1 file changed

+8
-1
lines changed

packages/angular/build/src/builders/application/options.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -703,5 +703,12 @@ function normalizeExternals(value: string[] | undefined): string[] | undefined {
703703
return undefined;
704704
}
705705

706-
return [...new Set(value.map((d) => (d.endsWith('/*') ? d.slice(0, -2) : d)))];
706+
return [
707+
...new Set(
708+
value.map((d) =>
709+
// remove "/*" wildcard in the end if provided string is not path-like
710+
d.endsWith('/*') && !/^\.{0,2}\//.test(d) ? d.slice(0, -2) : d,
711+
),
712+
),
713+
];
707714
}

0 commit comments

Comments
 (0)