Have ideas to improve npm?Join in the discussion! »

    babel-plugin-runtime

    1.0.7 • Public • Published

    babel-plugin-runtime

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

    Installation

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

    Keywords

    Install

    npm i babel-plugin-runtime

    DownloadsWeekly Downloads

    70,734

    Version

    1.0.7

    License

    MIT

    Last publish

    Collaborators

    • avatar