Name Last Update
..
lib Loading commit data...
.npmignore Loading commit data...
README.md Loading commit data...
package.json Loading commit data...

babel-plugin-runtime

Externalise references to helpers and builtins, automatically polyfilling your code without polluting globals

Installation

$ npm install babel-plugin-runtime

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["runtime"]
}

Via CLI

$ babel --plugins runtime script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["runtime"]
});