perf: delete pre-view-engine core, compiler, platform-browser, etc code (#14788)
After the introduction of the view engine, we can drop a lot of code that is not used any more. This should reduce the size of the app bundles because a lot of this code was not being properly tree-shaken by today's tools even though it was dead code.
This commit is contained in:
@ -23,7 +23,6 @@ const minCoreIndex = `
|
||||
export * from './src/di/metadata';
|
||||
export * from './src/di/injector';
|
||||
export * from './src/di/injection_token';
|
||||
export * from './src/animation/metadata';
|
||||
export * from './src/linker';
|
||||
export * from './src/render';
|
||||
export * from './src/codegen_private_exports';
|
||||
@ -115,19 +114,6 @@ describe('compiler (bundled Angular)', () => {
|
||||
expect(generatedFiles.find(f => /app\.module\.ngfactory\.ts/.test(f.genFileUrl)))
|
||||
.toBeDefined();
|
||||
})));
|
||||
|
||||
it('should compile with view engine',
|
||||
async(() => compile(host, aotHost, expectNoDiagnostics, undefined, {
|
||||
useViewEngine: true
|
||||
}).then(generatedFiles => {
|
||||
const genCompFile =
|
||||
generatedFiles.find(f => /app\.component\.ngfactory\.ts/.test(f.genFileUrl));
|
||||
expect(genCompFile).toBeDefined();
|
||||
expect(genCompFile.source).toContain('ViewDefinition');
|
||||
expect(genCompFile.source).not.toContain('AppView');
|
||||
expect(generatedFiles.find(f => /app\.module\.ngfactory\.ts/.test(f.genFileUrl)))
|
||||
.toBeDefined();
|
||||
})));
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user