chore: use loaded module reference (#5763)
This commit is contained in:
1 parent
bc79edfa67
commit
d85fee42ee
25 files changed
+291
-191
No files matched your search
@@ -51,7 +51,7 @@ async function loadLegacyModulesEntities(configModules, container) {
|
||||
continue
|
||||
}
|
||||
|
||||
let modulePath = isString(moduleConfig)
|
||||
const modulePath = isString(moduleConfig)
|
||||
? moduleConfig
|
||||
: (moduleConfig as InternalModuleDeclaration).resolve ??
|
||||
(definition.defaultPackage as string)
|
||||
@@ -69,7 +69,7 @@ async function loadLegacyModulesEntities(configModules, container) {
|
||||
continue
|
||||
}
|
||||
|
||||
const module = await import(modulePath)
|
||||
const module = await import(modulePath as string)
|
||||
|
||||
if (module.default?.models) {
|
||||
module.default.models.map((model) =>
|
||||
|
||||
Reference in new issue
Block a user