Skip to content

Commit fc0e05f

Browse files
dmitry-stepanenkodgp1130
authored andcommitted
fix(@angular/build): skip normalization of relative externals
1 parent c3edfeb commit fc0e05f

File tree

1 file changed

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

1 file changed

+8
-1
lines changed

Diff for: packages/angular/build/src/builders/application/options.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,14 @@ function normalizeExternals(value: string[] | undefined): string[] | undefined {
707707
return undefined;
708708
}
709709

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

713720
async function findFrameworkVersion(projectRoot: string): Promise<string> {

0 commit comments

Comments
 (0)