-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(material/core): reduce the number of module resolutions required for the legacy theming bundle #22687
fix(material/core): reduce the number of module resolutions required for the legacy theming bundle #22687
Conversation
d0bf2ce
to
660aef4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, outstanding! combined with Charles changes on CLI this will probably get everyone back to what it was before.
Caretaker note: This may require some build updates
071c2cd
to
152fd96
Compare
…for the legacy theming bundle Currently the legacy `material/theming` bundle is set up to forward a few top-level `.import` files. The problem is that those files have been auto-generated to be backwards-compatible even for deep imports which means that they have a lot of overlapping `@forward` and `@import` statements. This results in a significant increase in build times for consumers still using the old bundle. These changes address the issue by introducing new shallower `*-legacy-index.scss` files which only export the APIs from the specific package and which in turn are re-exported through the top-level `material/theming` file. The change appears to cut the down the production build time on material.angular.io before the @use migration by more than 60%. Fixes angular#22676.
…quired for the legacy theming bundle
152fd96
to
0b48af9
Compare
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Currently the legacy
material/theming
bundle is set up to forward a few top-level.import
files. The problem is that those files have been auto-generated to be backwards-compatible even for deep imports which means that they have a lot of overlapping@forward
and@import
statements. This results in a significant increase in build times for consumers still using the old bundle.These changes address the issue by introducing new shallower
*-legacy-index.scss
files which only export the APIs from the specific package and which in turn are re-exported through the top-levelmaterial/theming
file. The change appears to cut the down the production build time on material.angular.io before the @use migration by more than 60%.Fixes #22676.