#dynamically loading modules at runtime

2 messages · Page 1 of 1 (latest)

astral pagoda
#

I've been tasked with building a nestjs system that can have "plugins" - which are based on other nestjs modules. The authors of the modules do not have access to the main nestjs app module , so can't add their module to the "imports"

Is there a way to "discover" these modules and add them to the app at runtime ?

whole perch
#

Nest-commander kind of does this with plugin commands that can be added at boot time. Might want to look into that for ideas