UNPKG

@twstyled/babel-preset

Version:

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

8 lines (7 loc) 388 B
import type babelCore from '@babel/core'; import type { NodePath } from '@babel/traverse'; import type { JSXAttribute, TemplateLiteral } from '@babel/types'; import { CorePluginState } from './types'; export default function visitorPreprocessToStyled({ types: t }: { types: typeof babelCore.types; }, path: NodePath<JSXAttribute>, state: CorePluginState, css: TemplateLiteral): void;