Skip to content

Commit

Permalink
Downgrade JSX transform to support react 16 (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenLorantfy authored Jun 5, 2024
1 parent 1c66a07 commit ac1a6aa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zod-error-viewer",
"version": "1.2.0",
"version": "1.2.1",
"license": "MIT",
"author": {
"name": "Ben Lorantfy",
Expand Down
1 change: 1 addition & 0 deletions src/ZodErrorViewer.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// @vitest-environment happy-dom

import * as React from "react";
import { test, expect, beforeEach } from "vitest";
import Meta, * as stories from "./ZodErrorViewer.stories";
import { composeStories } from "@storybook/react";
Expand Down
1 change: 1 addition & 0 deletions src/ZodErrorViewer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"use client";

import * as React from "react";
import { type CSSProperties, useState, useMemo, useRef } from "react";
import { flushSync } from "react-dom";
import { z, ZodError, ZodIssue, ZodIssueCode } from "zod";
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"jsx": "react",

/* Linting */
"strict": true,
Expand Down

0 comments on commit ac1a6aa

Please sign in to comment.