@wordpress/browserslist-config Edit

WordPress Browserslist shareable config for Browserslist.

Installation Installation

Install the module

$ npm install browserslist @wordpress/browserslist-config --save-dev

Note: This package requires Node.js 12.0.0 or later. It is not compatible with older versions.

Top ↑

Usage Usage

Add this to your package.json file:

"browserslist": [
    "extends @wordpress/browserslist-config"

Alternatively, add this to .browserslistrc file:

extends @wordpress/browserslist-config

This package when imported returns an array of supported browsers, for more configuration examples including Autoprefixer, Babel, ESLint, PostCSS, and stylelint see the Browserslist examples repo.