We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
vite:esbuild
1 parent cc980b0 commit e6f3b02Copy full SHA for e6f3b02
packages/vite/src/node/plugins/esbuild.ts
@@ -182,7 +182,11 @@ export function esbuildPlugin(options: ESBuildOptions = {}): Plugin {
182
minifyIdentifiers: false,
183
minifySyntax: false,
184
minifyWhitespace: false,
185
- treeShaking: false
+ treeShaking: false,
186
+ // keepNames is not needed when minify is disabled.
187
+ // Also transforming multiple times with keepNames enabled breaks
188
+ // tree-shaking. (#9164)
189
+ keepNames: false
190
}
191
192
return {
0 commit comments