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

Function babelPlugin()

ts
function babelPlugin(options: WarpDriveConfig): {
  gts: Function[];
  js: PluginItem[];
};

Defined in: index.ts:27

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

ts
{
  gts: Function[];
  js: PluginItem[];
}

An array of Babel plugins

gts

ts
gts: Function[];

js

ts
js: PluginItem[];

Released under the MIT License.