Skip to content

Commit 6dd5b18

Browse files
clydinmgechev
authored andcommitted
test: add E2E test for only ES2015 ngcc with differential loading (#15322)
1 parent 50fb6bc commit 6dd5b18

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
import { ng } from '../../utils/process';
3+
import { createProject } from '../../utils/project';
4+
5+
export default async function() {
6+
// Create a new project to avoid polluting node modules for other tests
7+
await createProject('ivy-project-ngcc', '--enable-ivy');
8+
9+
const { stderr, stdout } = await ng('build', '--prod');
10+
11+
if (stdout.includes('as esm5') || stderr.includes('as esm5')) {
12+
throw new Error('ngcc should not process ES5 during differential loading builds.');
13+
}
14+
}

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11280,7 +11280,7 @@ ts-node@^5.0.0:
1128011280
source-map-support "^0.5.3"
1128111281
yn "^2.0.0"
1128211282

11283-
tslib@^1.10.0:
11283+
tslib@1.10.0, tslib@^1.10.0:
1128411284
version "1.10.0"
1128511285
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.10.0.tgz#c3c19f95973fb0a62973fb09d90d961ee43e5c8a"
1128611286
integrity sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==

0 commit comments

Comments
 (0)