fix(ngcc): handle UMD re-exports (#34254)
In TS we can re-export imports using statements of the form: ``` export * from 'some-import'; ``` This is downleveled in UMD to: ``` function factory(exports, someImport) { function __export(m) { for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } __export(someImport); } ``` This commit adds support for this. PR Close #34254
This commit is contained in:

committed by
Kara Erickson

parent
47666f548c
commit
e9fb5fdb89
@ -115,3 +115,7 @@ export function resolveFileWithPostfixes(
|
||||
export function stripDollarSuffix(value: string): string {
|
||||
return value.replace(/\$\d+$/, '');
|
||||
}
|
||||
|
||||
export function stripExtension(fileName: string): string {
|
||||
return fileName.replace(/\..+$/, '');
|
||||
}
|
||||
|
Reference in New Issue
Block a user