UNPKG

@twstyled/babel-preset

Version:

Babel plugin for twstyled -- the full-featured Tailwind CSS + CSS in JS Compiler

23 lines (22 loc) 1.17 kB
import { types } from '@babel/core'; import { JSXAttribute } from '@babel/types'; import type babelCore from '@babel/core'; import type { NodePath } from '@babel/traverse'; import type { CorePluginOptions, CorePluginState } from './types'; export default function getVisitorsPreprocess({ types: t }: typeof babelCore, options: CorePluginOptions): { visitor: { Program: { enter(path: NodePath<types.Program>, state: CorePluginState): void; exit(nodePath: NodePath<types.Program>, state: CorePluginState): void; }; }; }; export declare function getVisitorsPreprocessorJsx({ types: t }: { types: typeof babelCore.types; }, options: CorePluginOptions): (item: NodePath<JSXAttribute>, state: CorePluginState) => void; export declare function getVisitorsPreprocessorTw$({ types: t }: { types: typeof babelCore.types; }, options: CorePluginOptions): (item: NodePath<JSXAttribute>, state: CorePluginState) => void; export declare function getVisitorsPreprocessorTwVariant$({ types: t }: { types: typeof babelCore.types; }, options: CorePluginOptions): (item: NodePath<JSXAttribute>, state: CorePluginState) => void;