This commit adds a mechanism by which the @angular/core annotations for @Component, @Injectable, and @NgModule become decorators which, when executed at runtime, trigger just-in-time compilation of their associated types. The activation of these decorators is configured by the ivy_switch mechanism, ensuring that the Ivy JIT engine does not get included in Angular bundles unless specifically requested. PR Close #23833
		
			
				
	
	
		
			29 lines
		
	
	
		
			754 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			754 B
		
	
	
	
		
			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
 | 
						|
 */
 | 
						|
 | 
						|
const resolve = require('rollup-plugin-node-resolve');
 | 
						|
const sourcemaps = require('rollup-plugin-sourcemaps');
 | 
						|
 | 
						|
const globals = {
 | 
						|
  '@angular/compiler': 'ng.compiler',
 | 
						|
  'rxjs': 'rxjs',
 | 
						|
  'rxjs/operators': 'rxjs.operators',
 | 
						|
};
 | 
						|
 | 
						|
module.exports = {
 | 
						|
  entry: '../../dist/packages-dist/core/fesm5/core.js',
 | 
						|
  dest: '../../dist/packages-dist/core/bundles/core.umd.js',
 | 
						|
  format: 'umd',
 | 
						|
  exports: 'named',
 | 
						|
  amd: {id: '@angular/core'},
 | 
						|
  moduleName: 'ng.core',
 | 
						|
  plugins: [resolve(), sourcemaps()],
 | 
						|
  external: Object.keys(globals),
 | 
						|
  globals: globals
 | 
						|
};
 |