UNPKG

@twstyled/babel-preset

Version:

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

14 lines (13 loc) 466 B
import { NodePath, types } from '@babel/core'; import type { CorePluginState, CorePluginOptions } from './types'; export default function babelPluginWriteCss(babel: { types: typeof types; }, options: CorePluginOptions): { name: string; visitor: { Program: { enter(nodePath: NodePath<types.Program>, state: CorePluginState): void; exit(nodePath: NodePath<types.Program>, state: CorePluginState): void; }; }; };