Skip to content

Commit 9fa8371

Browse files
authored
Merge pull request #78 from mottox2/patch-2
Fix build `.mjs` filename
2 parents 4454803 + 17ff39a commit 9fa8371

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function webpackConfig(dir, additionalConfig) {
7575
};
7676
fs.readdirSync(dirPath).forEach(function(file) {
7777
if (file.match(/\.(m?js|ts)$/)) {
78-
var name = file.replace(/\.(js|ts)$/, "");
78+
var name = file.replace(/\.(m?js|ts)$/, "");
7979
webpackConfig.entry[name] = "./" + file;
8080
}
8181
});

0 commit comments

Comments
 (0)