fix: module build

v1.18.x
Barış Soner Uşaklı 4 years ago
parent 3881ac309f
commit bae0f343e1

@ -204,10 +204,11 @@ async function getModuleList() {
}; };
}); });
moduleFiles.concat(mods).forEach(function (mod) { moduleFiles.push(...mods);
mod.filename = path.relative(basePath, mod.srcPath).replace(/\\/g, '/');
});
})); }));
moduleFiles.forEach(function (mod) {
mod.filename = path.relative(basePath, mod.srcPath).replace(/\\/g, '/');
});
return moduleFiles; return moduleFiles;
} }

Loading…
Cancel
Save