Too Long; Didn't Read
With ES2015 standard (or ES6), we got built-in modules in JavaScript. Previously it was supported by third-party tooling like RequireJS, for example. You can now use modern CDN services like Skypack and then import your tool in the browser. Using Typescript and export definitions, you can even use your package in Deno land. Skypack will allow your package to be published in the NPM registry without any transpiling. You can also use your code in modern JavaScript code without any additional processes.