Javascript – Uncaught error for constructor when using Webpack, Babel and Terser for packaging and minification
I am trying to create a websdk using simple JavaScript. When I use Webpack, Babel and Terser for minification and bundling, it is generating bundle.js file but when I use it in my HTML, it's giving me an error on…