Blog128.9K views2,788 votes0 replies4,275 following
Vite Library Mode: Building Distributable Packages Without an HTML Shell
Vite's default build assumes a web app. Setting build.lib.entry turns it into a library bundler, but formats, externals, and CSS need deliberate configuration.