I’m writing a JavaScript lib with TypeScript, using the excellent Vite for on-the-fly transpiling and packaging. This post is about the config I use and specifically covers removal of comments because I Googled for a solution but it wasn’t obvious so I’m writing about it here.
Tag Archives: vite
JavaScript – my first bundler experience with TypeScript & Vite
I’ve developed with JavaScript for years but oddly never needed a bundler because I try not to stack dependencies by using the npm install process. This time there was no avoiding it but hell what a load of hassle – until I found Vite. Read all about it…