I am using rollup to build a library that is dependent on jquery and backbone. Spent three weeks building it, but now I'm realizing that my bundled code contains the source code for jquery and backbone inside of it. So including my library on a page with jquery already on it will just double jquery, leading to a lot of unnecessary bloat.
How do developers deal with this issue?