angular-docs-cn/modules/@angular/upgrade/.babelrc

22 lines
766 B
Plaintext
Raw Normal View History

{
"presets": ["es2015"],
"plugins": [["transform-es2015-modules-umd", {
"globals": {
"@angular/core": "ng.core",
"@angular/common": "ng.common",
"@angular/compiler": "ng.compiler",
"@angular/platform-browser": "ng.platformBrowser",
"@angular/platform-browser-dynamic": "ng.platformBrowserDynamic",
"@angular/upgrade": "ng.upgrade",
"rxjs/Subject": "Rx",
"rxjs/observable/PromiseObservable": "Rx", // this is wrong, but this stuff has changed in rxjs
// b.6 so we need to fix it when we update.
"rxjs/operator/toPromise": "Rx.Observable.prototype",
"rxjs/Observable": "Rx"
},
"exactGlobals": true
}]],
"moduleId": "@angular/upgrade"
}