Skip to content

Commit

Permalink
perf(React): use babel optimisation option for React
Browse files Browse the repository at this point in the history
It will:
- inline React elements as object literals
- hoist static React elements

See https://facebook.github.io/react/blog/2015/10/07/react-v0.14.html
  • Loading branch information
vvo committed Feb 10, 2016
1 parent b001d23 commit 95f940c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"env": {
"test": {
"plugins": ["babel-plugin-rewire"]
},
"production": {
"optional": ["optimisation"]
}
},
"stage": 2
Expand Down

0 comments on commit 95f940c

Please sign in to comment.