Skip to content

refactor(compiler): support block-specific deferredImports mapping#69912

Draft
alxhub wants to merge 1 commit into
angular:mainfrom
alxhub:keyed-defer
Draft

refactor(compiler): support block-specific deferredImports mapping#69912
alxhub wants to merge 1 commit into
angular:mainfrom
alxhub:keyed-defer

Conversation

@alxhub

@alxhub alxhub commented Jul 23, 2026

Copy link
Copy Markdown
Member

Allow @Component.deferredImports to be an object mapping block names to arrays of dependencies, and support @defer (deps blockName) syntax to configure block-specific dependency lists in both standard and local compilation modes.

This enables more targeted dependency chunk generation during local compilation instead of over-eagerly loading all deferred imports together.

Allow `@Component.deferredImports` to be an object mapping block names to arrays of dependencies, and support `@defer (deps blockName)` syntax to configure block-specific dependency lists in both standard and local compilation modes.

This enables more targeted dependency chunk generation during local compilation instead of over-eagerly loading all deferred imports together.
@angular-robot angular-robot Bot added the area: compiler Issues related to `ngc`, Angular's template compiler label Jul 23, 2026
@ngbot ngbot Bot added this to the Backlog milestone Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: compiler Issues related to `ngc`, Angular's template compiler

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant