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