de795ea233
TypeScript compiler will now build to ES2015 code and modules. Babili is used to minify ES2015 code, providing an initial optimization that we couldn't previously get just from Uglify. Uses Babel to convert ES2015 to UMD/ES5 code, and Uglify to minimize the output.
22 lines
766 B
Plaintext
22 lines
766 B
Plaintext
|
|
{
|
|
"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"
|
|
}
|