Terser options types are outdated (original) (raw)
Describe the bug
The type definitions for Terser (defined here) are outdated and do not match the source. I'll gladly open a PR to update them, however I notice the line that says "Modified and inlined to avoid extra dependency". I'm not sure what the modifications would be and don't want to overwrite them.
Reproduction
N/A
Steps to reproduce
No response
System Info
System: OS: macOS 14.5 CPU: (20) arm64 Apple M1 Ultra Memory: 17.08 GB / 64.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 20.11.0 - ~/.nvm/versions/node/v20.11.0/bin/node Yarn: 3.6.3 - ~/.nvm/versions/node/v20.11.0/bin/yarn npm: 10.2.4 - ~/.nvm/versions/node/v20.11.0/bin/npm pnpm: 9.4.0 - ~/.nvm/versions/node/v20.11.0/bin/pnpm bun: 1.1.18 - /opt/homebrew/bin/bun Browsers: Chrome: 126.0.6478.127 Safari: 17.5
Used Package Manager
pnpm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- 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.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.