-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Respect Browserslist config in esbuild #11489
Comments
I could understand why for JS features, someone would like to stick with esbuild target syntax. However for css features I don't see any value in it. Vite should allow both syntaxes maybe? But IMO it would be an easier bet to initially support |
Browserslist is already the most common and versatile syntax in the front-end ecosystem, and I strongly support this proposal. |
100%, this makes a lot of sense. |
Any update on this? |
Description
esbuild doesn’t have built-in Browserslist config.
Benefits:
Suggested solution
We can use
browserslist-to-esbuild
as suggested in When Vite ignores your Browserslist configuration article.In this case, Vite will look for Browserslist config and auto-fill
build.target
config option.Alternative
No response
Additional context
Browserslist also supports Node.js versions
Validations
The text was updated successfully, but these errors were encountered: