1.0.7 • Published 9 years ago

babel-plugin-runtime v1.0.7

Weekly downloads
90,433
License
MIT
Repository
github
Last release
9 years ago

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"]
});