preact-hn
preact-hn copied to clipboard
Replace `Object.assign` polyfill
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?