diff --git a/packages/unminify/src/transformations/un-jsx.ts b/packages/unminify/src/transformations/un-jsx.ts index faf24c3a..c619040f 100644 --- a/packages/unminify/src/transformations/un-jsx.ts +++ b/packages/unminify/src/transformations/un-jsx.ts @@ -5,11 +5,11 @@ import { generateName } from '@wakaru/ast-utils/identifier' import { isNull, isTrue, isUndefined } from '@wakaru/ast-utils/matchers' import { removeDeclarationIfUnused } from '@wakaru/ast-utils/scope' import { nonNullable } from '@wakaru/shared/array' -import type { ASTTransformation } from '@wakaru/shared/rule' import { createJSCodeshiftTransformationRule } from '@wakaru/shared/rule' +import { z } from 'zod' +import type { ASTTransformation } from '@wakaru/shared/rule' import type { ExpressionKind, LiteralKind } from 'ast-types/lib/gen/kinds' import type { ASTNode, ASTPath, CallExpression, Collection, Identifier, JSCodeshift, JSXAttribute, JSXElement, JSXExpressionContainer, JSXFragment, JSXIdentifier, JSXMemberExpression, JSXSpreadAttribute, JSXSpreadChild, JSXText, MemberExpression, RestElement, SpreadElement, StringLiteral, VariableDeclarator } from 'jscodeshift' -import { z } from 'zod' export const Schema = z.object({ pragma: z.string().optional().describe('The pragma to use for JSX transformation.'),