@babel/plugin-external-helpers

  1. npm install --save-dev @babel/plugin-external-helpers

Usage

.babelrc

  1. {
  2. "plugins": ["@babel/plugin-external-helpers"]
  3. }

Via CLI

  1. babel --plugins @babel/plugin-external-helpers script.js

Via Node API

  1. require("@babel/core").transform("code", {
  2. plugins: ["@babel/plugin-external-helpers"]
  3. });