Open rileylnapier opened 7 years ago
Did you use babel-plugin-transform-react-inline-elements
which included regular react
?
react-lite
is written by ES2015, as a UMD
modules, and works with webpack alias
, it is hard to load react-lite
twice, and it is also hard to check that.
Maybe webpack-bundle-analyzer can help:)
no, my build just creates two bundles for one page and i didn't realize both of them had react bundled. this caused some really weird errors. react throws an error in this situation and react-lite doesn't. just fyi.
i ran into an issue yesterday where my event handlers were all firing twice. took me long time to debug and i ended up having to revert react-lite. when i reverted, i got this error
i then was able to realize i had react-lite in 2 different bundles and then fixed my problem and went back to use react-lite.
would be nice to have this error in react-lite too. thoughts?