set hoisted to true for react constant elements optimisation

This commit is contained in:
Sebastian McKenzie 2015-04-14 07:39:44 -07:00
parent 47d253c732
commit 4cc843ded3

View File

@ -36,4 +36,6 @@ export function JSXElement(node, parent, scope, file) {
this.skip();
if (state.isImmutable) this.hoist();
node._hoisted = true;
}