@stlite/browser is now built by Vite's Library mode and it doesn't minify the bundle completely as https://vite.dev/config/build-options#build-minify says
Note the build.minify option does not minify whitespaces when using the 'es' format in lib mode, as it removes pure annotations and breaks tree-shaking.
It makes sense as it's more important to make libraries ESM-aware and tree-shake-friendly in general.
However, in our case, we want to minify the bundle even ignoring such benefits.
Refs:
https://zenn.dev/udop/articles/8d668b3625ddd9
@stlite/browseris now built by Vite's Library mode and it doesn't minify the bundle completely as https://vite.dev/config/build-options#build-minify saysIt makes sense as it's more important to make libraries ESM-aware and tree-shake-friendly in general.
However, in our case, we want to minify the bundle even ignoring such benefits.
Refs:
https://zenn.dev/udop/articles/8d668b3625ddd9