fix(packages): use ES modules for primary build (#11120)
This commit is contained in:

committed by
Victor Berchet

parent
8cb1046ce9
commit
979657989b
36
modules/@angular/router/rollup-testing.config.js
Normal file
36
modules/@angular/router/rollup-testing.config.js
Normal file
@ -0,0 +1,36 @@
|
||||
export default {
|
||||
entry: '../../../dist/packages-dist/router/testing/index.js',
|
||||
dest: '../../../dist/packages-dist/router/bundles/router-testing.umd.js',
|
||||
format: 'umd',
|
||||
moduleName: 'ng.router.testing',
|
||||
globals: {
|
||||
'@angular/core': 'ng.core',
|
||||
'@angular/common': 'ng.common',
|
||||
'@angular/compiler': 'ng.compiler',
|
||||
'@angular/platform-browser': 'ng.platformBrowser',
|
||||
'@angular/platform-browser-dynamic': 'ng.platformBrowserDynamic',
|
||||
|
||||
'rxjs/Observable': 'Rx',
|
||||
'rxjs/Subject': 'Rx',
|
||||
'rxjs/BehaviorSubject': 'Rx',
|
||||
'rxjs/Observer': 'Rx',
|
||||
'rxjs/Subscription': '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/add/operator/map': 'Rx.Observable.prototype',
|
||||
'rxjs/add/operator/mergeAll': 'Rx.Observable.prototype',
|
||||
'rxjs/add/operator/concatAll': 'Rx.Observable.prototype',
|
||||
'rxjs/add/operator/mergeMap': 'Rx.Observable.prototype',
|
||||
'rxjs/add/operator/reduce': 'Rx.Observable.prototype',
|
||||
'rxjs/add/operator/every': 'Rx.Observable.prototype',
|
||||
'rxjs/add/operator/first': 'Rx.Observable.prototype',
|
||||
'rxjs/add/operator/catch': 'Rx.Observable.prototype',
|
||||
'rxjs/add/operator/last': 'Rx.Observable.prototype',
|
||||
'rxjs/add/operator/toPromise': 'Rx.Observable.prototype',
|
||||
'rxjs/observable/from': 'Rx.Observable',
|
||||
'rxjs/observable/fromPromise': 'Rx.Observable',
|
||||
'rxjs/observable/forkJoin': 'Rx.Observable',
|
||||
'rxjs/observable/of': 'Rx.Observable',
|
||||
'rxjs/util/EmptyError': 'Rx.EmptyError'
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user