perf(core): remove bundler optimization.removeAvailableModules (#11072)

remove removeAvailableModules
This commit is contained in:
Sébastien Lorber 2025-04-08 11:53:45 +02:00 committed by GitHub
parent e8e67e9b9e
commit 67248f8e66
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -249,8 +249,6 @@ export async function createBaseConfig({
modules: ['node_modules', path.join(siteDir, 'node_modules')],
},
optimization: {
// See https://github.com/web-infra-dev/rspack/issues/9834
removeAvailableModules: true,
// Only minimize client bundle in production because server bundle is only
// used for static site generation
minimize: minimizeEnabled,