JSPM

  • Created
  • Published
  • Downloads 3205737
  • Score
    100M100P100Q192313F
  • License MIT

Polyfills for various browsers including commonly used language features

Package Exports

  • react-app-polyfill/ie11
  • react-app-polyfill/ie9
  • react-app-polyfill/jsdom

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-app-polyfill) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-app-polyfill

This package includes polyfills for various browsers. It includes minimum requirements and commonly used language features used by Create React App projects.
Please refer to its documentation:

Features

Each polyfill ensures the following language features are present:

  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])

Entry Points

There is no single entry point. You can only import individual browser support levels.

Internet Explorer 9

// # index.js
import 'react-app-polyfill/ie9'; // make this the first line of your application

// ...

Internet Explorer 11

// # index.js
import 'react-app-polyfill/ie11'; // make this the first line of your application

// ...