fix: enable treeshaking\n\nRemoved explicit disablement of treeshaking in vite.config.mts by deleting rollupOptions.treeshake: false. Treeshaking is now enabled by default, allowing the bundler to prune unused exports and potentially reduce bundle size. This aligns with Vite/Rollup defaults and does not introduce breaking changes.

This commit is contained in:
snomiao
2025-10-15 05:55:45 +00:00
parent 4dab27a84e
commit 8debaf922b

View File

@@ -186,11 +186,6 @@ export default defineConfig({
minify: SHOULD_MINIFY ? 'esbuild' : false,
target: 'es2022',
sourcemap: true,
rollupOptions: {
// Disabling tree-shaking
// Prevent vite remove unused exports
treeshake: false
}
},
esbuild: {