9da63408b0
@angular/http/testing used to publish a metadata structure which paralleled the .d.ts structure. This causes ngc to write incorrect imports for this bundle when compiling providers using MockBackend and other http testing classes. This change restructures the @angular/http/testing build a bit, modeling it after @angular/platform-browser-animations, and produces a FESM structure that has flat metadata. Fixes #15521.
20 lines
464 B
JSON
20 lines
464 B
JSON
{
|
|
"extends": "../tsconfig-build",
|
|
"compilerOptions": {
|
|
"paths": {
|
|
"@angular/core": ["../../dist/packages/core"],
|
|
"@angular/http": ["../../dist/packages/http"],
|
|
"rxjs/*": ["../../node_modules/rxjs/*"]
|
|
}
|
|
},
|
|
"files": [
|
|
"public_api.ts"
|
|
],
|
|
"angularCompilerOptions": {
|
|
"annotateForClosureCompiler": true,
|
|
"strictMetadataEmit": true,
|
|
"flatModuleOutFile": "index.js",
|
|
"flatModuleId": "@angular/http/testing"
|
|
}
|
|
}
|