ngc can now validate metadata before emitting to verify it doesn't contain an error symbol that will result in a runtime error if it is used by the StaticReflector. To enable this add the section, "angularCompilerOptions": { "strictMetadataEmit": true } to the top level of the tsconfig.json file passed to ngc. Enabled metadata validation for packages that are intended to be used statically.
38 lines
1.3 KiB
JSON
38 lines
1.3 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"baseUrl": ".",
|
|
"declaration": true,
|
|
"stripInternal": true,
|
|
"experimentalDecorators": true,
|
|
"module": "commonjs",
|
|
"moduleResolution": "node",
|
|
"outDir": "../../../dist/packages-dist/platform-browser/",
|
|
"paths": {
|
|
"@angular/core": ["../../../dist/packages-dist/core"],
|
|
"@angular/core/testing": ["../../../dist/packages-dist/core/testing"],
|
|
"@angular/common": ["../../../dist/packages-dist/common"],
|
|
"@angular/common/testing": ["../../../dist/packages-dist/common/testing"],
|
|
|
|
// workaround for https://github.com/Microsoft/TypeScript/issues/8723
|
|
// we can get rid of this once we update to typescript 1.9.0-dev.20160525-1.0 or newer
|
|
"selenium-webdriver": ["../../../node_modules/@types/selenium-webdriver/index.d.ts"]
|
|
},
|
|
"rootDir": ".",
|
|
"sourceMap": true,
|
|
"inlineSources": true,
|
|
"lib": ["es6", "dom"],
|
|
"target": "es5"
|
|
},
|
|
"files": [
|
|
"index.ts",
|
|
"testing.ts",
|
|
"../../../node_modules/@types/hammerjs/index.d.ts",
|
|
"../../../node_modules/@types/jasmine/index.d.ts",
|
|
"../../../node_modules/@types/protractor/index.d.ts",
|
|
"../../../node_modules/zone.js/dist/zone.js.d.ts"
|
|
],
|
|
"angularCompilerOptions": {
|
|
"strictMetadataEmit": true
|
|
}
|
|
}
|