set hoisted to true for react constant elements optimisation
This commit is contained in:
parent
47d253c732
commit
4cc843ded3
@ -36,4 +36,6 @@ export function JSXElement(node, parent, scope, file) {
|
||||
this.skip();
|
||||
|
||||
if (state.isImmutable) this.hoist();
|
||||
|
||||
node._hoisted = true;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user