You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Import interopRequireWildcard helper from @babel/runtime instead of inlining it
When no explicit runtime version was given, @react-native/babel-preset
enabled @babel/plugin-transform-runtime without a `version`, so it
defaulted to 7.0.0. Helpers added to @babel/runtime after 7.0.0 — most
notably the modern `interopRequireWildcard` used for every
`import * as X` — were therefore inlined into every module instead of
being imported once from @babel/runtime, needlessly bloating the bundle.
Default the transform-runtime `version` to 7.14.0 (the floor at which
`interopRequireWildcard` is available) when a version isn't explicitly
provided. The helper is now imported from @babel/runtime and deduplicated.
Fixes#57123
function_createForOfIteratorHelperLoose(r,e){vart="undefined"!=typeofSymbol&&r[Symbol.iterator]||r["@@iterator"];if(t)return(t=t.call(r)).next.bind(t);if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeofr.length){t&&(r=t);varo=0;returnfunction(){returno>=r.length ? {done: !0} : {done: !1,value: r[o++]};};}thrownewTypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}
0 commit comments