build: fix secondary entry point es5 output and core Rx references (#14820)

Secondary entry points (testing, static, etc) are rolled up into a
single ESM/ES2015 file, then downleveled to ESM/ES2015. This downleveling
was not working and was producing ESM/ES2015. Also, the @angular/core
package's .babelrc file was missing reference to Rx Observable which
broke the UMD bundle.

Fixes #14730
This commit is contained in:
Jason Aden
2017-03-01 15:59:09 -08:00
committed by Igor Minar
parent b6e6fc1724
commit 3168ef75da
2 changed files with 19 additions and 8 deletions

View File

@ -4,7 +4,16 @@
"plugins": [["transform-es2015-modules-umd", {
"globals": {
"@angular/core": "ng.core",
"rxjs/Subject": "Rx"
"rxjs/Subject": "Rx",
"rxjs/Observable": "Rx",
"rxjs/Observer": "Rx",
"rxjs/Subscription": "Rx",
"rxjs/symbol/observable": "Rx.Symbol.observable",
"rxjs/observable/merge": "Rx.Observable",
"rxjs/operator/share": "Rx.Observable.prototype"
},
"exactGlobals": true
}]],