open-index/open-npm huggingface dataset:
npm package: @midigator/browserslist-config
Description: See https://github.com/browserslist/browserslist#shareable-configs
Latest version: 1.0.1

# browserslist-config-midigator

The [browserslist](https://github.com/browserslist/browserslist#shareable-configs) supported by Midigator. This is used by tools like @babel/preset-env and autoprefixer to ensure that our frontend code at Midigator is compiled to work in the browsers we support.

## Notes

- See [this file](/src/midigator-browserslist-config.js) to see which browsers are supported.
- The [test snapshot](/src/__snapshots__/midigator-browserslist-config.test.js.snap) shows exactly which browsers were captured by the config the last time we updated this library. However, that list does not necessarily represent the browsers that code will be compiled to. What determines which browsers code is compiled to is the version of browserslist that is found inside of any project's yarn.lock. The version there is usually determined by the version of @babel/preset-env or autoprefixer that you have installed.

## Installation

```sh
yarn add @midigator/browserslist-config
```

## Usage

In your package.json, create a "browserslist" property that extends the midigator config. Read here for more details.

{
"browserslist": ["extends @midigator/browserslist-config"]
}

In your .babelrc, add 'babel-preset-env'. You do not need to add any config options to it in here because babel-preset-env uses browserslist which already looks at your package.json's "browserslist" config by default.

{
presets: ["@babel/preset-env"];
}