We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91e21b1 commit f987f4fCopy full SHA for f987f4f
vite.config.mts
@@ -105,14 +105,21 @@ export default defineConfig({
105
comfyAPIPlugin(),
106
],
107
build: {
108
- minify: false,
+ minify: 'esbuild',
109
+ target: 'es2015',
110
sourcemap: true,
111
rollupOptions: {
112
// Disabling tree-shaking
113
// Prevent vite remove unused exports
114
treeshake: false
115
}
116
},
117
+ esbuild: {
118
+ minifyIdentifiers: false,
119
+ keepNames: true,
120
+ minifySyntax: true,
121
+ minifyWhitespace: true,
122
+ },
123
define: {
124
'__COMFYUI_FRONTEND_VERSION__': JSON.stringify(process.env.npm_package_version),
125
0 commit comments