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
When I set env. targets to "chrome>40, safari>10", the build will import core-js polyfill and @swc/helpers, However, the method exported by @swc/helpers also contains es6 syntax and does not have a polyfill, which will make it impossible to run on the target browser
The @swc/helpers/_/_to_consumable_array implementation uses es6's Array.from without adding the corresponding polyfill
An error occurs when running an earlier version of the browser:Array.from is not a function
Same for iterableToArray implementation
@swc/helpers@0.5.3:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When I set env. targets to "chrome>40, safari>10", the build will import core-js polyfill and @swc/helpers, However, the method exported by @swc/helpers also contains es6 syntax and does not have a polyfill, which will make it impossible to run on the target browser
For example:
swc post-construct:
The @swc/helpers/_/_to_consumable_array implementation uses es6's Array.from without adding the corresponding polyfill
An error occurs when running an earlier version of the browser:Array.from is not a function
Same for iterableToArray implementation
@swc/helpers@0.5.3:
@babel/runtime-corejs3@7.23.6:
Beta Was this translation helpful? Give feedback.
All reactions