Browserslist

Browserslist logo

Browserslist enables the sharing of target browser and Node.js version configurations between various frontend tools. It’s used in Autoprefixer, Babel, postcss-preset-env, eslint-plugin-compat, stylelint-no-unsupported-browser-features, postcss-normalize, obsolete-webpack-plugin.

All frontend tools will automatically target the desired browser versions when you add the following to your package.json:

  "browserslist": [
    "defaults and supports es6-module",
    "maintained node versions"
  ]

Or in your .browserslistrc config:

# Browsers that we support

defaults and supports es6-module
maintained node versions

Developers can set their version lists using queries like last 2 versions and be free from the need to manually update versions. Browserslist uses caniuse-lite with Can I Use data for those queries.

Browserslist can take queries from tool options, browserslist config, .browserslistrc config,browserslist section in package.json, or environment variables.

Author

Further reading

In the same orbit

Explore more open source projects

Let's solve your hard problems

Martians at a glance
18
years in business

We're experts at helping developer products grow, with a proven track record in UI design, product iterations, cost-effective scaling, and much more. We'll lay out a strategy before our engineers and designers leap into action.

If you prefer email, write to us at surrender@evilmartians.com