-
-
Notifications
You must be signed in to change notification settings - Fork 375
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
Honor browserslist in package.json for Babel, Autoprefixer, etc. #124
Comments
@ethanroday I'm not very familiar with all these config options, but is there a convention for passing specific browser targets for Babel? I ask because require('babel-preset-env')({
targets: {
chrome: 52
},
browsers: [ 'last 2 versions']
}); Should we even allow Appreciate any insight! |
This probably can shed some light. Seems like it was just left there and browserslist can handle anything that browser specific targets (i.e. |
Yeah, looks like anything can be written as a |
I like the idea that this gives people a single source of truth for defining their support targets. |
So does it support |
No, only the package.json option. |
for now 😛 (hopefully) |
Rather than hard-code a list of browsers in babel and webpack configs, it would be great if the CLI just added a default
browserslist
entry inpackage.json
that the user could then edit. For those of us developing for, say, UC Browser for Android, there's currently no recourse to get the full set of required prefixes other than forking this repo and altering the webpack config manually.The text was updated successfully, but these errors were encountered: