mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
f90c20df40
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
(cherry picked from commit ecd047578e)