Hello, I'm writing a JS library, using TypeScript (because of static typing) and ES6 -style modules.
I'm wondering what is the best format to package my library. My target are all modern browsers and Node.js, I've read ES6 modules are now broadly supported by browsers and Node.js; thus, is it a good choice?
Sadly I've seen that the test framework I'm using (jest) doesn't support ES6 modules. Therefore I think I have to fallback on commonjs. But commonjs can't be used on browsers, so shoud I make two different outputs? 🤔