Bundler not working as expected

The npm package that we created for using ui for authentication is now having some crazy unexpected behaviours. All i know is this is causing because of the bundler. The default one that we used in the package is webpack but now I'm thinking about rollup.

I'll learn how rollup works and soon release a actual stable package with rollup.

Excited!!!!!