dej611 / spid-react-button

Pulsante SSO per SPID in React
https://dej611.github.io/spid-react-button/
European Union Public License 1.2
18 stars 15 forks source link

Enable newer version of React + fix transient peerDeps #43

Closed dej611 closed 3 years ago

dej611 commented 3 years ago

On 0.1.0 version I saw this on bundlephobia 😱 :

Screenshot 2021-04-08 at 09 06 07

The bundle is now considered 10x the actual size?!

Then looking into thee bundlephobia I found this issue which leads to this article about "how peerdependencies work".

This PR forwards the react-dom peerDependency (and ignores the prop-types one for now). Also it enables react 17 to work.