idea: browserslist for npm packages
See original GitHub issueThe current implementation of browserslist good fit for applications, but is it a good fit for libraries?
I’m thinking out loud. https://github.com/ai/browserslist/issues/75 wants to add node.js support. Same time there is engines
in package.json. Should engines
directive allow to list browsers?
Like:
{
"engines": {
"Firefox": "> 20",
"not ie": "<= 8"
}
}
Can this information be used by browserslist to verify that all required packages met application browser requirements?
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
browserslist-generator - npm
A library that makes generating and validating Browserslists a breeze!. Latest version: 1.0.66, last published: 8 months ago.
Read more >browserslist - npm
Share target browsers between different front-end tools, like Autoprefixer, Stylelint and babel-env-preset. Latest version: 4.21.4, ...
Read more >browserslist-useragent - npm
A utility to match a browselist query to browser user agents. Latest version: 4.0.0, last published: 2 months ago.
Read more >browserslist-config-terra - npm
Browserslist is a library to share a browsers list between different front-end tools, like Autoprefixer, Eslint, and Stylelint. Valid ...
Read more >@nodecraft/browserslist-config - npm
Start using @nodecraft/browserslist-config in your project by running `npm i ... "Browserslist is a Good Idea" (blog post by @chriscoyier) ... package.json.
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
Unofficial, but the widely used
package.browser
(version of the package transpiled/written with changes for browser usage) property would also be nice to ‘support’ as mixture ofpackage.engines
&&browserslist
somehow 😃. Though this is not reallybrowserslist
issue 🙃@michael-ciniawsky FWIW there’s already this: https://github.com/defunctzombie/package-browser-field-spec