2017-03-02 15:12:46 -05:00
|
|
|
/**
|
|
|
|
* @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
|
|
|
|
*/
|
|
|
|
|
2017-10-30 13:55:45 -04:00
|
|
|
const resolve = require('rollup-plugin-node-resolve');
|
|
|
|
const sourcemaps = require('rollup-plugin-sourcemaps');
|
2017-05-23 16:01:39 -04:00
|
|
|
|
|
|
|
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'
|
|
|
|
};
|
|
|
|
|
2017-10-30 13:55:45 -04:00
|
|
|
module.exports = {
|
2017-09-13 19:20:29 -04:00
|
|
|
entry: '../../dist/packages-dist/router/esm5/router.js',
|
2017-03-06 19:51:03 -05:00
|
|
|
dest: '../../dist/packages-dist/router/bundles/router.umd.js',
|
2017-03-02 15:12:46 -05:00
|
|
|
format: 'umd',
|
2017-01-30 18:28:56 -05:00
|
|
|
exports: 'named',
|
2017-09-28 12:29:22 -04:00
|
|
|
amd: {id: '@angular/router'},
|
2017-03-02 15:12:46 -05:00
|
|
|
moduleName: 'ng.router',
|
2017-08-02 22:15:30 -04:00
|
|
|
plugins: [resolve(), sourcemaps()],
|
2017-05-23 16:01:39 -04:00
|
|
|
external: Object.keys(globals),
|
|
|
|
globals: globals
|
2017-03-02 15:12:46 -05:00
|
|
|
};
|