diff --git a/src/babel/transformation/transformers/optimisation/react.constant-elements.js b/src/babel/transformation/transformers/optimisation/react.constant-elements.js index bfaff5f29f..f269f63edf 100644 --- a/src/babel/transformation/transformers/optimisation/react.constant-elements.js +++ b/src/babel/transformation/transformers/optimisation/react.constant-elements.js @@ -36,4 +36,6 @@ export function JSXElement(node, parent, scope, file) { this.skip(); if (state.isImmutable) this.hoist(); + + node._hoisted = true; }