JSPM

  • Created
  • Published
  • Downloads 89587241
  • Score
    100M100P100Q228194F
  • License MIT

Share target browsers between different front-end tools, like Autoprefixer, Stylelint and babel-env-preset

Package Exports

  • browserslist
  • browserslist/browser.js
  • browserslist/error
  • browserslist/error.js
  • browserslist/index.js
  • browserslist/node
  • browserslist/node.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (browserslist) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Browserslist Cult Of Martians

Browserslist logo by Anton Lovchikov

The config to share target browsers and Node.js versions between different front-end tools. It is used in:

All tools will find target browsers automatically, when you add the following to package.json:

  "browserslist": [
    "defaults",
    "not IE 11",
    "maintained node versions"
  ]

Or in .browserslistrc config:

# Browsers that we support

defaults
not IE 11
maintained node versions

Developers set their version lists using queries like last 2 versions to be free from updating versions manually. Browserslist will use caniuse-lite with Can I Use data for this queries.

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

Sponsored by Evil Martians

Docs

Read full docs on GitHub.