mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
ecd047578e
When partial declarations are not preprocessed to AOT by the linker, the `ngDeclareComponent` call causes them to be compiled ad-hoc. In this mode, NgModule imports in standalone components would be dropped, deviating from the linker. This commit changes the ad-hoc compilation of component declarations to pass the NgModule imports along just like the linker does. Fixes #69451