51 lines
1.6 KiB
JavaScript
51 lines
1.6 KiB
JavaScript
/**
|
|
* @license
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
|
|
import resolve from 'rollup-plugin-node-resolve';
|
|
|
|
const globals = {
|
|
'@angular/core': 'ng.core',
|
|
'@angular/common': 'ng.common',
|
|
'@angular/platform-browser': 'ng.platformBrowser',
|
|
|
|
'rxjs/BehaviorSubject': 'Rx',
|
|
'rxjs/Observable': 'Rx',
|
|
'rxjs/Subject': 'Rx',
|
|
'rxjs/Subscription': 'Rx',
|
|
'rxjs/util/EmptyError': 'Rx',
|
|
|
|
'rxjs/observable/from': 'Rx.Observable',
|
|
'rxjs/observable/fromPromise': 'Rx.Observable',
|
|
'rxjs/observable/forkJoin': 'Rx.Observable',
|
|
'rxjs/observable/of': 'Rx.Observable',
|
|
|
|
'rxjs/operator/toPromise': 'Rx.Observable.prototype',
|
|
'rxjs/operator/map': 'Rx.Observable.prototype',
|
|
'rxjs/operator/mergeAll': 'Rx.Observable.prototype',
|
|
'rxjs/operator/concatAll': 'Rx.Observable.prototype',
|
|
'rxjs/operator/mergeMap': 'Rx.Observable.prototype',
|
|
'rxjs/operator/reduce': 'Rx.Observable.prototype',
|
|
'rxjs/operator/every': 'Rx.Observable.prototype',
|
|
'rxjs/operator/first': 'Rx.Observable.prototype',
|
|
'rxjs/operator/catch': 'Rx.Observable.prototype',
|
|
'rxjs/operator/last': 'Rx.Observable.prototype',
|
|
'rxjs/operator/filter': 'Rx.Observable.prototype',
|
|
'rxjs/operator/concatMap': 'Rx.Observable.prototype'
|
|
};
|
|
|
|
export default {
|
|
entry: '../../dist/packages-dist/router/@angular/router.es5.js',
|
|
dest: '../../dist/packages-dist/router/bundles/router.umd.js',
|
|
format: 'umd',
|
|
exports: 'named',
|
|
moduleName: 'ng.router',
|
|
plugins: [resolve()],
|
|
external: Object.keys(globals),
|
|
globals: globals
|
|
};
|