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:
@ -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
|
||||
}]],
|
||||
|
Reference in New Issue
Block a user