Skip to content

Commit

Permalink
Support typescript files until netlify/pull/39 is merged
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-- committed Nov 1, 2018
1 parent ef07a47 commit 2d4b9a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ function webpackConfig(dir, additionalConfig) {
devtool: false
};
fs.readdirSync(dirPath).forEach(function(file) {
if (file.match(/\.js$/)) {
var name = file.replace(/\.js$/, "");
if (file.match(/\.(m?js|ts)$/)) {
var name = file.replace(/\.(m?js|ts)$/, "");
webpackConfig.entry[name] = "./" + name;
}
});
Expand Down

0 comments on commit 2d4b9a3

Please sign in to comment.