# browserslist-config-openmrs

> The browserslist for openmrs code

Latest version **1.0.1** (published 2020-04-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install browserslist-config-openmrs
pnpm add browserslist-config-openmrs
yarn add browserslist-config-openmrs
bun add browserslist-config-openmrs
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-04-14 |
| First published | 2019-08-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | brandones, joeldenning |
| Keywords | browserslist, openmrs |

## Links

- npm: https://www.npmjs.com/package/browserslist-config-openmrs
- Repository: https://github.com/openmrs/browserslist-config-openmrs
- Homepage: https://github.com/openmrs/browserslist-config-openmrs#readme
- Issues: https://github.com/openmrs/browserslist-config-openmrs/issues
- npm.io page: https://npm.io/package/browserslist-config-openmrs

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2020-04-14
- 1.0.0 — 2019-08-08

## README

# browserslist-config-openmrs

The [browserslist](https://github.com/browserslist/browserslist) supported by OpenMRS. this is used by tools like
[@babel/preset-env](https://babeljs.io/docs/en/babel-preset-env) and [autoprefixer](https://github.com/postcss/autoprefixer) to ensure
that our frontend code at OpenMRS is compiled to work in the browsers we support.

## Notes

- This list of browsers was determined as part of OpenMRS' RFC process. [More info](https://github.com/openmrs/openmrs-rfc-frontend/blob/master/text/0003-browser-support.md).
- You must use `@babel/preset-env` and/or `autoprefixer` in order for your code's compilation to target the correct browsers.
- See [this file](src/browserslist-config-openmrs.js) to see which browsers are supported.
- The [test snapshot](src/__snapshots__/browserslist-config-openmrs.test.js.snap) shows exactly which browsers were captured by the config
  the last time we updated the browserslist-config-openmrs 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
  package-lock.json. The version there is usually determined by the version of `@babel/preset-env` or `autoprefixer` that you have installed.
- If you're using [css-loader](git@github.com:webpack-contrib/css-loader.git), be sure to use at least version 1.0.0, which has support for shareable browserslist config files.

## Installation

```sh
npm install --save-dev browserslist-config-openmrs
```

## Usage

In your package.json, create a `"browserslist"` property that extends the openmrs config. Read [here](https://github.com/browserslist/browserslist#shareable-configs) for more details.

```json
{
  "browserslist": ["extends browserslist-config-openmrs"]
}
```

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.

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

---
_Source: https://npm.io/package/browserslist-config-openmrs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
