fix(common): fix improper packaging for @angular/common/http (#18613)
PR Close #18613
This commit is contained in:
parent
fdd5010832
commit
65e26d713c
|
@ -6,16 +6,25 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* 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 {
|
export default {
|
||||||
entry: '../../../dist/packages-dist/common/@angular/common/http.es5.js',
|
entry: '../../../dist/packages-dist/common/@angular/common/http.es5.js',
|
||||||
dest: '../../../dist/packages-dist/common/bundles/common-http.umd.js',
|
dest: '../../../dist/packages-dist/common/bundles/common-http.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
exports: 'named',
|
exports: 'named',
|
||||||
moduleName: 'ng.commmon.http',
|
moduleName: 'ng.common.http',
|
||||||
globals: {
|
external: Object.keys(globals),
|
||||||
'@angular/core': 'ng.core',
|
globals: globals
|
||||||
'@angular/platform-browser': 'ng.platformBrowser',
|
|
||||||
'rxjs/Observable': 'Rx',
|
|
||||||
'rxjs/Subject': 'Rx'
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue