feat(tsc-wrapped): record original location of flattened symbols (#15367)
Added an "origins" section to the flat module `.metadata.json` files that records where the original symbols was declared. This allows correctly calculating relative path references recorded in metadata.
This commit is contained in:

committed by
Miško Hevery

parent
5efc86069f
commit
7354949763
@ -25,6 +25,7 @@ export interface ModuleMetadata {
|
||||
exports?: ModuleExportMetadata[];
|
||||
importAs?: string;
|
||||
metadata: {[name: string]: MetadataEntry};
|
||||
origins?: {[name: string]: string};
|
||||
}
|
||||
export function isModuleMetadata(value: any): value is ModuleMetadata {
|
||||
return value && value.__symbolic === 'module';
|
||||
|
Reference in New Issue
Block a user