@alauda/doom 1.6.0 → 1.6.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/lib/cli/load-config.js +4 -5
- package/package.json +1 -1
package/lib/cli/load-config.js
CHANGED
|
@@ -233,10 +233,6 @@ const getCommonConfig = async ({ config, root, configFilePath, base, version, do
|
|
|
233
233
|
},
|
|
234
234
|
},
|
|
235
235
|
},
|
|
236
|
-
export: config.export?.map((item) => ({
|
|
237
|
-
...item,
|
|
238
|
-
entry: globSync(item.entry, { cwd: localBasePath }),
|
|
239
|
-
})),
|
|
240
236
|
};
|
|
241
237
|
};
|
|
242
238
|
const findConfig = async (basePath) => {
|
|
@@ -325,7 +321,10 @@ export async function loadConfig(root, { config: configFile, base, prefix, v: ve
|
|
|
325
321
|
lang: commonConfig.lang,
|
|
326
322
|
root: commonConfig.root,
|
|
327
323
|
});
|
|
328
|
-
mergedConfig.export =
|
|
324
|
+
mergedConfig.export = config.export?.map((item) => ({
|
|
325
|
+
...item,
|
|
326
|
+
entry: globSync(item.entry, { cwd: commonConfig.root }),
|
|
327
|
+
}));
|
|
329
328
|
if (base && prefix) {
|
|
330
329
|
mergedConfig.base = (mergedConfig.prefix = normalizeSlash(prefix)) + base;
|
|
331
330
|
}
|