3.0.0 • Published 2 years ago

react-app-polyfill v3.0.0

Weekly downloads
2,631,317
License
MIT
Repository
github
Last release
2 years ago

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.

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

Usage

First, install the package using Yarn or npm:

$ npm install react-app-polyfill --save
$ # or
$ yarn add react-app-polyfill

Now, you can import the entry point for the minimal version you intend to support. For example, if you import the IE9 entry point, this will include IE10 and IE11 support.

Internet Explorer 9

// This must be the first line in src/index.js
import 'react-app-polyfill/ie9';

// ...

Internet Explorer 11

// This must be the first line in src/index.js
import 'react-app-polyfill/ie11';

// ...
react-scriptsxmi-scripts@h1-card/h1-lib-frontend@bsolution/dev@bsolution/fast@bsolution/scripts@savaleukhin/react-scripts@scentregroup/react-scripts@procore/core-scripts@talesman/react-scriptsbit-bincarrier_anal@galgotech/rjsf-core@gd-uikit/react-scriptscbbpa-clientcc-gram-demo@teambit/reactreact-wind-uismart-input-demobyteplayerkstick-react-scriptswatsize-test-react-scripts@psimk/react-scriptsglobal-martcomatch-mvp-debugging@darapti/darapti-react-scriptsswitch_mostqroda-sdkqroda-sdk-v1metaliquid-react-scriptsrockywu-uireact-jsonschema-form--ml@tomas2d/react-scriptsjbojcic-react-scriptsupnext-apps-readermaccabi@jvhellemondt/custom-react-scripts@st4rfox/electron-scriptssv-component-librarysv-component-library-1sv-component-library-2@thuanpq/airvert-ui@xinyifly/react-scripts@ipavinthan/react-scriptsmio-cli-service@katalabut/react-scriptsandculturecode-react-scriptswebeetle-react-scriptsyadong-react@agney/react-scripts-tailwindzackmoreplay-react-scriptsgooapps-react-opsthefarm-react-scripts@wywk/headquaters-marketing-eventconcord-ui-plugin-react-scriptssebrae-boilerplatesebrae-react-scriptsmf_nslogin@cloudhuset/zd-app-react-scriptsidelic-react-scriptsdemo-control-dashboardtest-app-6test-app-7tm-components-testzozengo-react@jvhellemondt/react-scriptsearthling-interactive-react-scriptshoogo-niuyapingreact-epic-image-sliderupful_editor_libpejann-scriptsmy-custom-react-jwplayerinversify-react-scriptselectron-cra-scriptsecom-catalogkula-calculatorjs-advancedplatinion-paris-react-componentsreact-scripts-public-urlzula-bravosmartinput-reactstar-react-scripts@amajola/react-scripts@priyanknamdeo16/react-scripts@ashversache/toasterreactor-scripts-for-laravel@packages-pragma/react-appsphere-components-libraryreact-cleanupreact-components-common-libraryprinter-editorwasm-worker-react-scriptsoptym-react-scripts@viren.ratan/react-scripts-jsscrazymagi-react-scriptsreact-monorepo-react-scriptsjob-search-web@brielov/react-scriptsdigitalocean-react-scriptsplan8studios-react-scripts
3.1.0-next.14

2 years ago

3.0.0

2 years ago

3.0.0-next.104

2 years ago

3.0.0-next.101

2 years ago

3.0.0-next.103

2 years ago

3.0.0-next.102

2 years ago

3.0.0-next.91

3 years ago

3.0.0-next.81

3 years ago

3.0.0-next.75

3 years ago

2.0.0

4 years ago

2.0.0-next.154

4 years ago

2.0.0-next.153

4 years ago

2.0.0-next.135

4 years ago

2.0.0-next.133

4 years ago

2.0.0-next.114

4 years ago

2.0.0-next.101

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.1.0-next.80

4 years ago

1.1.0-next.62

4 years ago

1.1.0-next.39

5 years ago

1.1.0-next.38

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

1.0.0-next.74

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.0

6 years ago