mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-08 17:10:07 +00:00
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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user