Détail du package

@jkroso/babel-plugin-runtime

jkroso19MIT1.0.9

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

babel-plugin

readme

babel-plugin-runtime

The difference between this and the plugin its based of is that this one explcitly depends on babel-runtime rather than expecting you to install it yourself.

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

Installation

$ npm install @jkroso/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"]
});