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

Function babelPlugin()

ts
function babelPlugin(options): object;

Defined in: node_modules/.pnpm/@warp-d_25f56f2729dd79700790d78740333f27/node_modules/@warp-drive/build-config/dist/index.d.ts:41

Create the Babel plugin for WarpDrive

Note: If your project already uses @embroider/macros then you should use setConfig instead of this function.

Parameters

options

WarpDriveConfig

WarpDrive configuration options

Returns

object

An array of Babel plugins

gts

ts
gts: Function[];

js

ts
js: PluginItem[];

Released under the MIT License.