Skip to content

Commit

Permalink
fix(common): fix improper packaging for @angular/common/http (#18613)
Browse files Browse the repository at this point in the history
PR Close #18613
  • Loading branch information
alxhub authored and jasonaden committed Aug 30, 2017
1 parent dfe2bad commit a203a95
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions packages/common/http/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,25 @@
* found in the LICENSE file at https://angular.io/license
*/

const globals = {
'@angular/core': 'ng.core',
'@angular/platform-browser': 'ng.platformBrowser',
'rxjs/Observable': 'Rx',
'rxjs/Subject': 'Rx',

'rxjs/observable/of': 'Rx.Observable.prototype',

'rxjs/operator/concatMap': 'Rx.Observable.prototype',
'rxjs/operator/filter': 'Rx.Observable.prototype',
'rxjs/operator/map': 'Rx.Observable.prototype',
};

export default {
entry: '../../../dist/packages-dist/common/@angular/common/http.es5.js',
dest: '../../../dist/packages-dist/common/bundles/common-http.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.commmon.http',
globals: {
'@angular/core': 'ng.core',
'@angular/platform-browser': 'ng.platformBrowser',
'rxjs/Observable': 'Rx',
'rxjs/Subject': 'Rx'
}
moduleName: 'ng.common.http',
external: Object.keys(globals),
globals: globals
};

0 comments on commit a203a95

Please sign in to comment.