refactor(compiler): don’t write summaries for jit by default
The default is false externally but true internally at Google.
This commit is contained in:

committed by
Alex Rickabaugh

parent
d56b7ed96d
commit
90b0713e32
@ -6,7 +6,7 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {AotCompiler, AotCompilerHost, AotCompilerOptions, CompileSummaryKind, GeneratedFile, createAotCompiler, toTypeScript} from '@angular/compiler';
|
||||
import {AotCompiler, AotCompilerHost, AotCompilerOptions, CompileSummaryKind, GeneratedFile, toTypeScript} from '@angular/compiler';
|
||||
|
||||
import {MockDirectory, compile, setup} from './test_util';
|
||||
|
||||
@ -15,7 +15,7 @@ describe('aot summaries for jit', () => {
|
||||
|
||||
function compileApp(rootDir: MockDirectory, options: {useSummaries?: boolean} = {}):
|
||||
{genFiles: GeneratedFile[], outDir: MockDirectory} {
|
||||
return compile([rootDir, angularFiles], options);
|
||||
return compile([rootDir, angularFiles], {...options, enableSummariesForJit: true});
|
||||
}
|
||||
|
||||
it('should create @Injectable summaries', () => {
|
||||
|
Reference in New Issue
Block a user