Skip to content
module@warp-drive/core/build-config/babel-macros

Function macros()

ts
function macros(): BabelPlugin[];

Defined in: node_modules/.pnpm/@warp-d_25f56f2729dd79700790d78740333f27/node_modules/@warp-drive/build-config/dist/babel-macros.d.ts:13

Returns

BabelPlugin[]

an array of Babel plugins that can be used for code-stripping based on the configuration supplied to setConfig and the current ENV.

  • deprecation constants imported from @warp-drive/build-config/deprecations
  • feature flags imported from @warp-drive/build-config/canary-features
  • debug logging constants imported from @warp-drive/build-config/debugging
  • environment constants imported from @warp-drive/build-config/env
  • expressionts imported from @warp-drive/build-config/macros

Released under the MIT License.