Yes, I agree. Many of them are distributed that way and those work seamlessly. Thanks for looking into this and for the confirmation
I went the route of packaging the library via webpack and it works without even importing. I should have tested in production mode though.