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
{{ message }}
Repository navigation
Add support for target: baseline-widely-available similar to Vite #893
As a developer using tsdown for browser-targeted packages, I want a baseline-widely-available target option so that I don’t have to hardcode and maintain browser version floors manually.
This works, but it gets stale over time and makes config harder to maintain. Vite already supports build.target: "baseline-widely-available", and a similar option in tsdown would make browser-library configs simpler and clearer.
Suggested solution
In the target option, support a string alias such as:
target: 'baseline-widely-available'
and ideally also allow the same value for:
css: {
target: 'baseline-widely-available'
}
Implementation-wise, this could map internally to a maintained browser target set, similar in spirit to Vite’s behavior.
Alternative
Continue using explicit browser targets in user config.
Activity
amanmahajan7 commentedon Apr 7, 2026
Thank you for the quick fix.