Skip to content

Commit

Permalink
Merge pull request #78 from mottox2/patch-2
Browse files Browse the repository at this point in the history
Fix build `.mjs` filename
  • Loading branch information
swyxio authored Nov 18, 2018
2 parents 4454803 + 17ff39a commit 9fa8371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function webpackConfig(dir, additionalConfig) {
};
fs.readdirSync(dirPath).forEach(function(file) {
if (file.match(/\.(m?js|ts)$/)) {
var name = file.replace(/\.(js|ts)$/, "");
var name = file.replace(/\.(m?js|ts)$/, "");
webpackConfig.entry[name] = "./" + file;
}
});
Expand Down

0 comments on commit 9fa8371

Please sign in to comment.