Central config format and resolver that tells Autoprefixer, Babel, Stylelint, PostCSS, and similar tools which browsers and Node versions to target.
Overview
Browserslist is the shared configuration layer front-end tools use to agree on target browsers and Node.js runtimes. Define queries once in package.json, a .browserslistrc file, environment variables, or shareable presets, and participating tools pick them up automatically when they run in your project tree.
Queries express policies such as last two versions, global or regional usage thresholds, Baseline feature sets, specific browser or Node version ranges, and Can I Use feature support levels. Combinators support unions, intersections, and negation so teams can balance compatibility with bundle size, often starting from the defaults shortcut for common web apps.
Resolution relies on caniuse-lite data for market and capability statistics. A built-in CLI prints the resolved browser set, companion tools lint configs, update the database, compile queries to user-agent regexes, and import analytics stats for custom usage queries.
The playground at browsersl.ist and documentation explain syntax and pitfalls, such as pairing last versions with usage filters and using not dead to drop unmaintained browsers. Shareable npm packages prefixed browserslist-config- let organizations publish org-wide targets.
Key features
- Unified browser target queries
- Node.js version selection
- package.json and .browserslistrc config
- Can I Use powered resolution
- Shareable config packages
- Built-in browserslist CLI
- Query combinators and negation
- Custom usage statistics support
Use cases
- Configuring Autoprefixer and PostCSS
- Babel preset env browser targets
- Linting unsupported CSS features
- Aligning toolchain compatibility policy