Skip to content

Commit

Permalink
Revert "fix: disable keepNames in vite:esbuild (fixes vitejs#9164) (v…
Browse files Browse the repository at this point in the history
…itejs#9166)"

This reverts commit e6f3b02.
  • Loading branch information
TrulyBright committed Oct 12, 2023
1 parent a4a17b8 commit 2dec002
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/vite/src/node/plugins/esbuild.ts
Expand Up @@ -248,11 +248,7 @@ export function esbuildPlugin(config: ResolvedConfig): Plugin {
minifyIdentifiers: false,
minifySyntax: false,
minifyWhitespace: false,
treeShaking: false,
// keepNames is not needed when minify is disabled.
// Also transforming multiple times with keepNames enabled breaks
// tree-shaking. (#9164)
keepNames: false,
treeShaking: false
}

return {
Expand Down

0 comments on commit 2dec002

Please sign in to comment.