Skip to content

Commit

Permalink
revert: fix: disable keepNames in vite:esbuild (fixes vitejs#9164)
Browse files Browse the repository at this point in the history
  • Loading branch information
TrulyBright committed Oct 12, 2023
1 parent a4a17b8 commit 53804dc
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 53804dc

Please sign in to comment.