module@warp-drive/core/build-config
Function babelPlugin()
ts
function babelPlugin(options: WarpDriveConfig): {
gts: Function[];
js: PluginItem[];
};Defined in: warp-drive-packages/build-config/src/index.ts:34
Create the Babel plugin for WarpDrive
The Setup guide shows how to configure it.
Note: If your project already uses @embroider/macros then you should use setConfig instead of this function.
Parameters
options
WarpDrive configuration options
Returns
ts
{
gts: Function[];
js: PluginItem[];
}An array of Babel plugins
gts
ts
gts: Function[];js
ts
js: PluginItem[];