ol = Promise.all(
modNames.map(async (path) => {
const url = new URL(path.replace(/^ol(\/)?/, ""), base);
const key = path.replaceAll("/", ".");
const value = import(url).then((m) => m.default ?? { ...m });
return [key, await value];
})
).then((mods) => _.zipObjectDeep(..._.unzip(mods)).ol)