UNPKG

@vue-macros/jsx-directive

Version:

jsxDirective feature from Vue Macros.

19 lines (16 loc) 632 B
import { CodeTransform } from '@vue-macros/common'; import { O as OptionsResolved } from './plugin.d-7vgTQLE3.js'; import { JSXElement, JSXAttribute, Node } from '@babel/types'; import 'unplugin'; declare const withDefaultsHelperCode: string; type JsxDirective = { node: JSXElement attribute: JSXAttribute parent?: Node | null vIfAttribute?: JSXAttribute vForAttribute?: JSXAttribute vMemoAttribute?: JSXAttribute }; declare function transformJsxDirective(code: string, id: string, options: OptionsResolved): CodeTransform | undefined; export { transformJsxDirective, withDefaultsHelperCode }; export type { JsxDirective };