UNPKG

@beqa/babel-plugin-transform-react-slots

Version:

The JSX to slot function transpilation plugin for babel

20 lines (17 loc) 685 B
import * as _babel_core from '@babel/core'; import { NodePath, types } from '@babel/core'; declare const _default: (api: object, options: Record<string, any> | null | undefined, dirname: string) => { name: string; inherits: any; pre(this: _babel_core.PluginPass, file: _babel_core.BabelFile): void; post(this: _babel_core.PluginPass): void; visitor: { Program: { enter(this: _babel_core.PluginPass, path: NodePath<types.Program>, state: _babel_core.PluginPass): void; }; JSXElement: { enter(this: _babel_core.PluginPass, path: NodePath<types.JSXElement>): void; }; }; }; export { _default as default };