npm.io
1.0.7 • Published 11 years ago

babel-plugin-runtime

Licence
MIT
Version
1.0.7
Deps
0
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

babel-plugin-runtime

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

Installation

$ npm install babel-plugin-runtime

Usage

.babelrc

{
  "plugins": ["runtime"]
}
Via CLI
$ babel --plugins runtime script.js
Via Node API
require("babel-core").transform("code", {
  plugins: ["runtime"]
});

Keywords