feat(ivy): enable processing of esm5 format in ngcc (#25406)
PR Close #25406
This commit is contained in:

committed by
Matias Niemelä

parent
9e179cb311
commit
9081efa961
@ -86,6 +86,20 @@ describe('ngcc behavioral tests', () => {
|
||||
expect(exitCode).toBe(0);
|
||||
});
|
||||
|
||||
it('should run ngcc without errors for fesm5', () => {
|
||||
const nodeModulesPath = path.join(basePath, 'node_modules');
|
||||
console.error(nodeModulesPath);
|
||||
const commonPath = path.join(nodeModulesPath, '@angular/common');
|
||||
const exitCode = mainNgcc([commonPath, 'fesm5']);
|
||||
|
||||
console.warn(find('node_modules_ngtsc').filter(p => p.endsWith('.js') || p.endsWith('map')));
|
||||
|
||||
console.warn(cat('node_modules_ngtsc/@angular/common/fesm5/common.js').stdout);
|
||||
console.warn(cat('node_modules_ngtsc/@angular/common/fesm5/common.js.map').stdout);
|
||||
|
||||
expect(exitCode).toBe(0);
|
||||
});
|
||||
|
||||
it('should run ngcc without errors for esm2015', () => {
|
||||
const nodeModulesPath = path.join(basePath, 'node_modules');
|
||||
console.error(nodeModulesPath);
|
||||
@ -99,4 +113,18 @@ describe('ngcc behavioral tests', () => {
|
||||
|
||||
expect(exitCode).toBe(0);
|
||||
});
|
||||
|
||||
it('should run ngcc without errors for esm5', () => {
|
||||
const nodeModulesPath = path.join(basePath, 'node_modules');
|
||||
console.error(nodeModulesPath);
|
||||
const commonPath = path.join(nodeModulesPath, '@angular/common');
|
||||
const exitCode = mainNgcc([commonPath, 'esm5']);
|
||||
|
||||
console.warn(find('node_modules_ngtsc').filter(p => p.endsWith('.js') || p.endsWith('map')));
|
||||
|
||||
console.warn(cat('node_modules_ngtsc/@angular/common/esm5/src/directives/ng_if.js').stdout);
|
||||
console.warn(cat('node_modules_ngtsc/@angular/common/esm5/http/src/module.js').stdout);
|
||||
|
||||
expect(exitCode).toBe(0);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user