Skip to content

Commit

Permalink
Merge pull request #617 from LiskHQ/539-update-babel-to-preset-env
Browse files Browse the repository at this point in the history
Update configs for babel-preset-env - Closes #539
  • Loading branch information
faival committed Apr 4, 2018
2 parents 75991ac + 48f717c commit 8b7e139
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion config/webpack.config.js
Expand Up @@ -17,7 +17,14 @@ module.exports = {
exclude: /node_modules/,
loader: 'babel-loader',
options: {
presets: ['es2015', 'react', 'stage-3'],
presets: [
['env', {
targets: {
browsers: ['last 2 versions', 'safari >= 7'],
},
}],
'react',
'stage-3'],
plugins: ['syntax-trailing-function-commas', 'import-glob', 'transform-decorators-legacy'],
env: {
test: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -97,7 +97,7 @@
"babel-plugin-syntax-trailing-function-commas": "=6.22.0",
"babel-plugin-transform-decorators-legacy": "=1.3.4",
"babel-polyfill": "6.26.0",
"babel-preset-es2015": "6.24.1",
"babel-preset-env": "1.6.1",
"babel-preset-react": "6.24.1",
"babel-preset-stage-3": "=6.24.1",
"bundlesize": "0.15.3",
Expand Down

0 comments on commit 8b7e139

Please sign in to comment.