forked from angular/angular
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ivy): give shim generation its own compiler options (angular#33256)
As a hack to get the Ivy compiler ngtsc off the ground, the existing 'allowEmptyCodegenFiles' option was used to control generation of ngfactory and ngsummary shims during compilation. This option was selected since it's enabled in google3 but never enabled in external projects. As ngtsc is now mature and the role shims play in compilation is now better understood across the ecosystem, this commit introduces two new compiler options to control shim generation: * generateNgFactoryShims controls the generation of .ngfactory shims. * generateNgSummaryShims controls the generation of .ngsummary shims. The 'allowEmptyCodegenFiles' option is still honored if either of the above flags are not set explicitly. PR Close angular#33256
- Loading branch information
1 parent
128f02d
commit efb99f1
Showing
4 changed files
with
143 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters