I'm following the recommendation to import individual components from react-bootstrap, like so import Container from "react-bootstrap/Container";
. I've verified the whole codebase and every single import is the same. Yet, when I analyze the bundle, it shows that react-bootstrap has been bundled in its entirety.
Any ideas what I could be missing?
Upon further investigation, I found that react-bootstrap-dialog
was importing the whole of react-bootstrap
. If you're here because of this same issue, I suggest you open package-lock.json
and search for any libraries that depend on the unshakeable library, that's the one you should potentially replace.
Note: Answer provided by OP
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With