Minify build?
Question from @thatandromeda.
The lib is currently pretty big. I haven't really worried about it because the whole program is such a data hog--but it would be nice to shrink the bundle when being loaded directly.
Vite's docs state that "Note the build.minify option is not available when using the 'es' format in lib mode." I'm not sure if this is simply an issue of they haven't gotten around it yet, or matter of principle--i.e., that minimization is something that should happen in a downstream application in a bundle process rather than in the distributed bundle. If so, it's possible that it might be worth shipping a minified copy as well.
Ordinarily I'd want the minified copy to also be transpiled into es2015 or something equivalent, but my impression is that the web workers involved in this make that more or less of a non-starter.
Actually, I just tried tossing iife, umd, etc targets into the vite config and it appears to work, which wasn't my recollection. So although those should be tested, it might be possible to use in standard contexts without editing. Will have to test more.