Files
2019-01-25 17:01:52 +08:00
..
fix
2019-01-25 17:01:52 +08:00
fix
2019-01-25 17:01:52 +08:00
fix
2019-01-25 17:01:52 +08:00
fix
2019-01-25 17:01:52 +08:00

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