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
Instead of requiring a new file (object-assign-polyfill) which modifies the Object prototype, what if you used babel-plugin-transform-object-assign? It will rewrite Object.assign into _extends and inline a small helper function. It's fewer bytes for "fallback" and takes advantages of existing build tools.
Did you look into this approach before?
The text was updated successfully, but these errors were encountered:
Instead of requiring a new file (
object-assign-polyfill
) which modifies theObject
prototype, what if you usedbabel-plugin-transform-object-assign
? It will rewriteObject.assign
into_extends
and inline a small helper function. It's fewer bytes for "fallback" and takes advantages of existing build tools.Did you look into this approach before?
The text was updated successfully, but these errors were encountered: