The loaded module's nested imports and providers are registered into the
global container and its onInitialize hook runs once. Controllers, queue
consumers, and cron jobs are skipped — that wiring is finalized at bootstrap.
Repeat loads of the same module return the cached ModuleRef without
re-registering.
Loads modules on demand (NestJS-style), so optional features stay out of the cold-start path until first use.
Inject DI_TOKENS.LazyModuleLoader and call load:
The loaded module's nested
importsandprovidersare registered into the global container and itsonInitializehook runs once. Controllers, queue consumers, and cron jobs are skipped — that wiring is finalized at bootstrap. Repeat loads of the same module return the cached ModuleRef without re-registering.