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