webpack2-polyfill-plugin

0.0.2 • Public • Published

Webpack2 Polyfill Plugin Build Status npm version

Insert polyfills for Webpack2

Includes:

  • Promise
  • Function.prototype.bind
  • Object.keys
  • Object.defineProperty (defineGetter/defineSetter)

See:What's new in webpack 2

How to use:

step 1. Install

npm install webpack2-polyfill-plugin --save

step 2. Use plugin at your webpack config

var Webpack2Polyfill = require("webpack2-polyfill-plugin");
 
module.exports = {
 
  //...
 
  plugins: [
    new Webpack2Polyfill()
  ]
};

Compatible:

IE.9 and above (Currently)

Why not IE8 ?

IE8 can't use Object.defineProperty with non-DOM Object. So can't do polyfill with some Webpack2 Usage (Ex: Using defineProperty at exports for Harmony Export).

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    163
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    163
  • 0.0.1
    0

Package Sidebar

Install

npm i webpack2-polyfill-plugin

Weekly Downloads

163

Version

0.0.2

License

MIT

Last publish

Collaborators

  • mc-zone