You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
This works if you define build.target: 'es2022', so esbuild won't use a helper to support instance class fields.
The ES build would not be mangled/minified though, there is another issue tracking this #6555
Describe the bug
Some terser options does not work with TypeScript.
Expected: Typescripts class member with name starting with /^_/ to be mangled after build.
Actual: Nothing is mangled.
Minimal Settings. For reproduction please refers to the reproducing repository.
Reproduction
https://github.com/cheuksing/vite-terser-issue-demo
Steps to reproduce
Run
yarn
followed byyarn build
.See the build result in
dist
.System Info
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: