Open Collective logo
Open Collective
Detect importing and locally declaring polypills
Published on March 24, 2019 by Amila Welihinda

`eslint-plugin-compat` now detects when you locally declare a polyfill or import one!. Here's some examples that would have failed in previous versions when targeting a browser that does not support the `Set` API:

```js

import { Set } from 'set-polyfill';

const set = new Set();

```