-
I want to write a library in TypeScript. I want my consumers to be able to npm i this thing and use it in node via cjs and esm, in a browser, or in a TS project. What's everybody's go to for this these days?
-
…in reply to @jefflembeck
It feels like the answer has become "rollup on prepublish" - that's an acceptable answer. I like rollup. Any footguns I should watch out for?
-
…in reply to @jefflembeck
Oh, and to really drive this home, my users should never, at any given point in time, know nor care how I wrote my project. It should _just work_ for them. it would be _nonsensical_ for me to demand them to understand what methods I used to write this thing