Skip to content

Commit

Permalink
fix: module build
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Oct 15, 2020
1 parent 3881ac3 commit bae0f34
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/meta/js.js
Expand Up @@ -204,10 +204,11 @@ async function getModuleList() {
};
});

moduleFiles.concat(mods).forEach(function (mod) {
mod.filename = path.relative(basePath, mod.srcPath).replace(/\\/g, '/');
});
moduleFiles.push(...mods);
}));
moduleFiles.forEach(function (mod) {
mod.filename = path.relative(basePath, mod.srcPath).replace(/\\/g, '/');
});
return moduleFiles;
}

Expand Down

0 comments on commit bae0f34

Please sign in to comment.