feature_request(config): support Browserslist
See original GitHub issue1. Summary
It would be nice, if browser-update will support Browserslist.
2. Argumentation
What is Browserslist. For example, I use Browserslist in order to indicate AutoPrefixer, which browsers-prefixes required.
If browser-update will support Browserslist, users can use one configuration file for AutoPrefixer (and another tools) and browser-update. Users doesn’t need duplicate properties and values for AutoPrefixer and browser-update.
Last 2 versions
not Explorer > 0
This is equivalent to:
required:{
i:0,
e:-1,
f:-1,
o:-1,
o_a:-1,
s:-1,
c:-1,
y:-1,
v:-1,
uc:-1,
samsung:-1
}
3. Example of expected behavior
If browserslist
exist:
will use values from browserslist
. User doesn’t need required
property.
else:
will use values of required
property.
Thanks.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:7 (2 by maintainers)
Top Results From Across the Web
[Feature Request:] add support for config file name ... - GitHub
Hi,. Configuration name *.config.js seems to be the most default/common value for most of majors libraries: webpack.config.js; babel.config.
Read more >Support Edge Chromium browser for Protect
I've been using the beta builds of the new/upcoming Chromium based Edge browser and noticed that it pops an 'unsupported browser' warning in...
Read more >Supported Browsers and Features | Create React App
The browserslist configuration controls the outputted JavaScript so that the emitted code will be compatible with the browsers specified.
Read more >Add support for Google Chrome | Jira Server and Data Center
I filed a Support request about this issue, and I was recommended to file a Feature request for this, because Chrome is not...
Read more >How to generate a browserslist scope to match feature support?
I am not sure what you mean by "I can't use browserslist directly, because the scope does not accept a list of features...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I wrote up a little helper: https://gist.github.com/nemchik/08297ef04366ca9a6064d5f0c27e582a With this, you can use
getRequiredFromList(queries)
to return the value of therequired
option accepted bybrowserUpdate
.Note: you have to supply
queries
( see https://github.com/browserslist/browserslist#queries ) because the browser won’t know the contents of your.browserslistrc
or be able to read it from anywhere else likepackage.json
.Thanks @andorfermichael I’ve added that change to my gist.