Skip to content

Commit ff95505

Browse files
devversionAndrewKushnir
authored andcommitted
build(docs-infra): ivy prebuild script should not run ngcc for all formats (angular#29117)
Currently when building AIO with Ivy, we run Ngcc and transform all found formats. This potentially slows down the build (and therefore the "test_aio_local_ivy" job). Since it's not necessary to build all formats, and we only need "fesm5" and "fesm2015", we can explicitly specify the required formats. **Note**: Currently this does not have any big effect, because Angular Material does not ship ES2015/ES5 files. The change primarily just suppresses the Ngcc messages for Material not providing ES2015/ES5 entry-points. Technically if new non-Ivy packages are added to AIO, this speeds up the build as we don't build the unused formats. PR Close angular#29117
1 parent 69265b7 commit ff95505

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aio/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"build": "yarn ~~build",
1818
"prebuild-local": "yarn setup-local",
1919
"build-local": "yarn ~~build",
20-
"prebuild-with-ivy": "yarn setup-local && yarn ivy-ngcc",
20+
"prebuild-with-ivy": "yarn setup-local && yarn ivy-ngcc --formats fesm2015 fesm5",
2121
"build-with-ivy": "node scripts/build-with-ivy",
2222
"extract-cli-command-docs": "node tools/transforms/cli-docs-package/extract-cli-commands.js 3b1fe6437",
2323
"lint": "yarn check-env && yarn docs-lint && ng lint && yarn example-lint && yarn tools-lint",

0 commit comments

Comments
 (0)