revojs 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module/index.js +3 -1
- package/dist/package.js +1 -1
- package/package.json +1 -1
package/dist/module/index.js
CHANGED
|
@@ -133,7 +133,9 @@ async function createConfig(inputConfig) {
|
|
|
133
133
|
config = mergeObjects(config, { [module.name]: module.config?.() ?? {} });
|
|
134
134
|
const result = await module.setup(config);
|
|
135
135
|
if (result) config = mergeObjects(config, result);
|
|
136
|
-
if (module.modules)
|
|
136
|
+
if (module.modules) {
|
|
137
|
+
for (const dependency of module.modules) if (!config.modules.some((entry) => entry.name === dependency.name)) config.modules.push(dependency);
|
|
138
|
+
}
|
|
137
139
|
index++;
|
|
138
140
|
}
|
|
139
141
|
for (const module of config.modules) {
|
package/dist/package.js
CHANGED