Skip to content

Commit

Permalink
Build: Make babel tranpile smarter by using chrome version (fixes bra…
Browse files Browse the repository at this point in the history
  • Loading branch information
gyandeeps authored and bkilrain committed Jan 13, 2017
1 parent 1c6ab39 commit 5d79e1b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"presets": ["react", "es2015"],
"presets": [
"react",
["env", {
"targets": {
"chrome": 54
}
}]
],
"plugins": [
"transform-react-inline-elements",
"transform-react-constant-elements"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
"babel-plugin-transform-react-constant-elements": "^6.4.0",
"babel-plugin-transform-react-inline-elements": "^6.4.0",
"babel-polyfill": "^6.3.14",
"babel-preset-es2015": "^6.1.18",
"babel-preset-env": "^1.1.6",
"babel-preset-react": "^6.1.18",
"babel-register": "^6.3.13",
"babel-runtime": "^6.3.13",
Expand Down

0 comments on commit 5d79e1b

Please sign in to comment.