Skip to content

Commit 2d4b9a3

Browse files
committed
Support typescript files until netlify/pull/39 is merged
1 parent ef07a47 commit 2d4b9a3

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)