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