feat(tsc-wrapped): add an option to ngc to bundle metadata (#14509)

Closes #14509
This commit is contained in:
Chuck Jazdzewski
2017-02-15 10:18:20 -08:00
committed by Igor Minar
parent 9a6f3d637f
commit 3b896709a9
10 changed files with 972 additions and 12 deletions

View File

@ -23,6 +23,7 @@ export interface ModuleMetadata {
__symbolic: 'module';
version: number;
exports?: ModuleExportMetadata[];
importAs?: string;
metadata: {[name: string]: MetadataEntry};
}
export function isModuleMetadata(value: any): value is ModuleMetadata {
@ -261,6 +262,11 @@ export interface MetadataError {
*/
character?: number;
/**
* The module of the error (only used in bundled metadata)
*/
module?: string;
/**
* Context information that can be used to generate a more descriptive error message. The content
* of the context is dependent on the error message.