Skip to content

Commit

Permalink
TS target=es5 if production
Browse files Browse the repository at this point in the history
  • Loading branch information
srolel committed Sep 29, 2017
1 parent 6092d59 commit 462f015
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webpack/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ module.exports = env => {
{
test: /\.tsx?$/,
exclude: /node_modules/,
loader: ['react-hot-loader/webpack', 'awesome-typescript-loader'],
loader: ['react-hot-loader/webpack', env.prod
? 'awesome-typescript-loader?target=es5'
: 'awesome-typescript-loader'],
},
{
test: /\.(css)$/,
Expand All @@ -61,8 +63,6 @@ module.exports = env => {
],
},



plugins: removeEmpty([
new webpack.optimize.CommonsChunkPlugin({
name: 'vendor',
Expand Down

0 comments on commit 462f015

Please sign in to comment.