cannot specify minify
independently for environments when builder.sharedPlugins: true
#19023
Open
7 tasks done
Labels
Describe the bug
When enabling
builder.sharedPlugins
, both client and server build gets minified. Specifying inenvironments.ssr.build.minify
doesn't work as well.Reproduction
https://stackblitz.com/github/hi-ogawa/reproductions/tree/main/vite-builder-sharedPlugins-minify?file=dist%2Fserver%2Fentry.server.js
Steps to reproduce
Run
pnpm build
, which generates following assetsdist/client/assets/entry.client-DenyN4II.js
dist/server/entry.server.js
System Info
System: OS: Linux 5.0 undefined CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 0 Bytes / 0 Bytes Shell: 1.0 - /bin/jsh Binaries: Node: 18.20.3 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 10.2.3 - /usr/local/bin/npm pnpm: 8.15.6 - /usr/local/bin/pnpm npmPackages: vite: ^6.0.4 => 6.0.4
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: