Skip to main content

@babel/build-external-helpers

A command line interface to build Babel external helpers.

Install

npm install --save-dev @babel/build-external-helpers

Usage

Build external helpers as a standalone script.

npx @babel/build-external-helpers > external-helpers.js

Output Type

-t, --output-type, one of global (default), umd, var, and module.

The following example set outputType to umd.

npx @babel/build-external-helpers --output-type umd > external-helpers.js

Allowlist

-l, --allow-list, comma-separated list of allowed helpers.

The following example generate the applyDecs2305 helper:

npx @babel/build-external-helpers --allowlist applyDecs2305 > external-decorator-helpers.js