Is tree shaking possible when building a lib with tsup?
Open
- Dominant language
- TypeScript
- Stars
- 11.3k
- Forks
- 275
- PR merge metrics
- No merged PRs in 30d
Description
I know tsup is powered by esbuild which supports tree shaking by default. However, I don't see much details about this part on the doc sites. So I was wondering if tsup inherits this good nature and what I can reference to make a lib bundled with tsup tree shakable. Thanks!
Contributor guide
Research direction
Review the tsup documentation and the esbuild tree-shaking documentation referenced by the issue. Determine whether tsup inherits esbuild's behavior and what library authors should configure or reference; the documentation is done when this guidance is clearly explained.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100