New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

unpolyfill

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unpolyfill

> `react-app-polyfill` replacement with IE9+ support.

latest
Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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

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

Bonus

  • URLSearchParams

Polyfill

FAQs

Package last updated on 14 May 2019

Related posts