| 
									
										
										
										
											2016-10-04 20:39:20 -07: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
 | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-02 16:47:23 -07:00
										 |  |  | class RollupNG2 { | 
					
						
							| 
									
										
										
										
											2016-10-04 20:39:20 -07:00
										 |  |  |   resolveId(id, from) { | 
					
						
							|  |  |  |     if (id.startsWith('@angular/')) { | 
					
						
							| 
									
										
										
										
											2017-03-07 11:04:30 -08:00
										 |  |  |       const packageName = id.split('/')[1]; | 
					
						
							|  |  |  |       return `${__dirname}/../../packages-dist/${packageName}/@angular/packageName.es5.js`; | 
					
						
							| 
									
										
										
										
											2016-06-02 16:47:23 -07:00
										 |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     // if(id.startsWith('rxjs/')){
 | 
					
						
							|  |  |  |     //   return `${__dirname}/../../../node_modules/rxjs-es/${id.replace('rxjs/', '')}.js`;
 | 
					
						
							|  |  |  |     // }
 | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export default { | 
					
						
							|  |  |  |   entry: 'test.js', | 
					
						
							|  |  |  |   format: 'es6', | 
					
						
							|  |  |  |   plugins: [ | 
					
						
							|  |  |  |     new RollupNG2(), | 
					
						
							|  |  |  |   ] | 
					
						
							| 
									
										
										
										
											2016-10-04 20:39:20 -07:00
										 |  |  | }; |