0.0.1 • Published 6 years ago

enum-polyfill v0.0.1

Weekly downloads
3
License
MIT
Repository
-
Last release
6 years ago

Enum Polyfill

For use with babel-plugin-transform-enum.

Installation

$ npm i enum-polyfill

Usage

First, add babel-plugin-transform-enum to your babelrc

{
  "plugins": [
    "transform-enum"
  ]
}

In the entry point to your application (the first file that is called), add

require("enum-polyfill");

Note on support

Eventually, should my proposal get traction, this will be moved to the core-js repository and then included in babel-polyfill directly, at which point this will no longer be supported.

Prior Art

Much thanks to the following people whose prior work was instrumental in the creation of this polyfill