Skip to content

Commit 89a0f4c

Browse files
committed
Support common alternative extensions for entries.
1 parent 05fc454 commit 89a0f4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/build.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ function webpackConfig(dir, additionalConfig) {
7474
devtool: false
7575
};
7676
fs.readdirSync(dirPath).forEach(function(file) {
77-
if (file.match(/\.js$/)) {
78-
var name = file.replace(/\.js$/, "");
77+
if (file.match(/\.(m?js|ts)$/)) {
78+
var name = file.replace(/\.(m?js|ts)$/, "");
7979
webpackConfig.entry[name] = "./" + name;
8080
}
8181
});

0 commit comments

Comments
 (0)