babel-plugin-runtime

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

MIT 7 个版本
安装
npm install babel-plugin-runtime
yarn add babel-plugin-runtime
pnpm add babel-plugin-runtime
bun add babel-plugin-runtime
README

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"]
});
版本列表
1.0.7 2015-06-20
1.0.6 2015-06-20
1.0.5 2015-06-15
1.0.4 2015-06-15
1.0.3 2015-06-15
1.0.2 2015-06-15
1.0.1 2015-06-15