Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cenfun/ie-polyfill
ie-polyfill
https://github.com/cenfun/ie-polyfill
babel fetch ie javascript polyfill regenerator
Last synced: 19 days ago
JSON representation
ie-polyfill
- Host: GitHub
- URL: https://github.com/cenfun/ie-polyfill
- Owner: cenfun
- License: mit
- Created: 2021-03-16T13:03:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-04T05:25:22.000Z (over 2 years ago)
- Last Synced: 2024-10-07T15:22:44.827Z (30 days ago)
- Topics: babel, fetch, ie, javascript, polyfill, regenerator
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ie-polyfill
> The way to keep IE working with modern functionality## Why this?
* [@babel/polyfill](https://babel.dev/docs/en/babel-polyfill) has been deprecated since Babel 7.4.0
* load latest core-js and regenerator-runtime without build-ins
* use other polyfill in IE like fetch
## Versions
* [core-js](https://github.com/zloirock/core-js) ^3.9.1
* [regenerator-runtime](https://github.com/facebook/regenerator/tree/master/packages/regenerator-runtime) ^0.13.7
* [whatwg-fetch](https://github.com/github/fetch) ^3.6.2## Install
```sh
npm i ie-polyfill
```## Usage
```js
import "ie-polyfill"
//or
require("ie-polyfill")
```
### Note: Please exclude ie-polyfill from webpack babel-loader config
```js
{
test: /\.(js)$/,
exclude: /ie-polyfill/,
use: {
loader: "babel-loader",
options: {}
}
}
```## In Browser
```html```
## Changelogs
* 1.0.2 added fetch polyfill