Modern browsers don't throw an error when calling getBoundingClientRect on an element that hasn't been attatched to the dom. This catches Internet Explorer's errors that are thrown when calling this method.
npm install catch-ie-get-bounding-client-rect-errorsThis package catches errors thrown by Internet Explorer's getBoundingClientRect method.
This method patches the getBoundingClientRect method when you include it. I only include this on my polyfills bundle as I don't want to mess with other browsers getBoundingClientRect method.
To use
```
yarn add catch-ie-get-bounding-client-rect-errors
```
import 'catch-ie-get-bounding-client-rect-errors';