feat: remove dead code and refactor the logic of resolving plugins (#10874)
This commit is contained in:
@@ -61,7 +61,7 @@ async function loadCustomLinks(directory: string, container: MedusaContainer) {
|
||||
const configModule = container.resolve(
|
||||
ContainerRegistrationKeys.CONFIG_MODULE
|
||||
)
|
||||
const plugins = getResolvedPlugins(directory, configModule, true) || []
|
||||
const plugins = await getResolvedPlugins(directory, configModule, true)
|
||||
const linksSourcePaths = plugins.map((plugin) =>
|
||||
join(plugin.resolve, "links")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user