abort-controller
abort-controller copied to clipboard
Add a ponyfill export
Currently, the two ways of consuming this package have downsides:
- The
abort-controllerexport relies on the native implementation in browsers, which will not work in older browsers - The
abort-controller/polyfillexport patches the globalAbortControllerif not present, which can be undesirable
It would be handy to support a ponyfill export which can offer the benefits of both.
(It's likely that this package is used in combination with cross-fetch, which encourages the use of its ponyfill export in its README.)