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:
Chuck Jazdzewski
2017-03-20 16:30:50 -07:00
committed by Miško Hevery
parent 5efc86069f
commit 7354949763
3 changed files with 23 additions and 5 deletions

View File

@ -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';