babel/packages/babel-plugin-transform-runtime
2016-02-09 07:31:02 +06:00
..
2016-02-09 07:31:02 +06:00
2016-02-06 19:06:41 -05:00
2015-09-15 06:12:46 +01:00

babel-plugin-transform-runtime

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

Installation

$ npm install babel-plugin-transform-runtime

Usage

.babelrc

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

Via CLI

$ babel --plugins transform-runtime script.js

Via Node API

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