Vite has revolutionised web development for frontend js/ts apps. As it is based on rollup and supports library mode, I wonder if there is still any advantage building js libraries directly with rollup or shall I use vite instead?
Vite hides rollup's config complexity and allows to use many vite plugins, including vitest (for testing).