Reputation: 41
I just make my own npm library, and I have to build this now. So I find build tool, like vite, rollup, and so on... And I wonder what is the best build tool of them.
I usually use vite(for website), cause it is simple for me, but the libraries I've found mostly use rollup (and webpack).
Upvotes: 4
Views: 850
Reputation: 9
Vite is primarily focused on providing a fast development experience for modern frameworks, leveraging native browser capabilities and hot module replacement.
Rollup, on the other hand, is a more general bundler, optimized for creating highly optimized production bundles, with a wide range of customization options and support for various module formats.
Upvotes: 1