@babel/plugin-external-helpers
npm install --save-dev @babel/plugin-external-helpers
Usage
With a configuration file (Recommended)
{
"plugins": ["@babel/plugin-external-helpers"]
}
Via CLI
babel --plugins @babel/plugin-external-helpers script.js
Via Node API
require("@babel/core").transformSync("code", {
plugins: ["@babel/plugin-external-helpers"]
});