Skip to content

Commit 95f940c

Browse files
author
vvo
committed
perf(React): use babel optimisation option for React
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
1 parent b001d23 commit 95f940c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"env": {
33
"test": {
44
"plugins": ["babel-plugin-rewire"]
5+
},
6+
"production": {
7+
"optional": ["optimisation"]
58
}
69
},
710
"stage": 2

0 commit comments

Comments
 (0)