Skip to content

Commit 4965092

Browse files
authored
Support common alternative extensions for entries.
1 parent 05fc454 commit 4965092

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/build.js

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

0 commit comments

Comments
 (0)