Skip to content

cenfun/ie-polyfill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ie-polyfill

The way to keep IE working with modern functionality

Why this?

  • @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

Install

npm i ie-polyfill

Usage

import "ie-polyfill"
//or
require("ie-polyfill")

Note: Please exclude ie-polyfill from webpack babel-loader config

{
    test: /\.(js)$/,
    exclude: /ie-polyfill/,
    use: {
        loader: "babel-loader",
        options: {}
    }
}

In Browser

<script src="path-to/ie-polyfill/dist/ie-polyfill.js"></script>

Changelogs

  • 1.0.2 added fetch polyfill

Packages

No packages published