包详细信息

babel-plugin-transform-runtime

babel1.1mMIT6.23.0

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

babel-plugin

自述文件

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

Via .babelrc (Recommended)

.babelrc

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

Via CLI

$ babel --plugins transform-runtime script.js

Via Node API

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