unpolyfill

1.0.2 • Public • Published

unpolyfill

react-app-polyfill replacement with IE9+ support.

Why

react-app-polyfill doesn't support IE9. The fetch polyfill it used is whatwg-fetch which is IE10+ only.

Usage

Import as ES6 module

Install unpolyfill as a dependency.

npm install --save unpolyfill

Import unpolyfill at the entry of application.

import 'unpolyfill'

Import via script

Put this line before bundle.

<script src="https://unpkg.com/unpolyfill"></script>

Features

Official

Partially adapted from react-app-polyfill readme

  1. Promise (for async / await support)
  2. window.fetch (a Promise-based way to make web requests in the browser)
  3. Object.assign (a helper required for Object Spread, i.e. { ...a, ...b })
  4. Symbol (a built-in object used by for...of syntax and friends)
  5. Array.from (a built-in static method used by array spread, i.e. [...arr])
  6. Map
  7. Set
  8. requestAnimationFrame

Bonus

  1. URLSearchParams

Polyfill

/unpolyfill/

    Package Sidebar

    Install

    npm i unpolyfill

    Weekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    45 kB

    Total Files

    6

    Last publish

    Collaborators

    • biped