diff --git a/.changeset/tall-walls-roll.md b/.changeset/tall-walls-roll.md new file mode 100644 index 000000000..24df5a3e1 --- /dev/null +++ b/.changeset/tall-walls-roll.md @@ -0,0 +1,5 @@ +--- +"@gitbook/react-openapi": patch +--- + +Compile JSX diff --git a/packages/react-openapi/package.json b/packages/react-openapi/package.json index b85ec37aa..dbf34d054 100644 --- a/packages/react-openapi/package.json +++ b/packages/react-openapi/package.json @@ -42,7 +42,7 @@ "react-dom": "catalog:" }, "peerDependencies": { - "react": "*", + "react": ">=17", "react-dom": "*" }, "scripts": { diff --git a/packages/react-openapi/tsconfig.json b/packages/react-openapi/tsconfig.json index d6062bf04..e6c1efe5d 100644 --- a/packages/react-openapi/tsconfig.json +++ b/packages/react-openapi/tsconfig.json @@ -23,7 +23,7 @@ "moduleResolution": "Bundler", "resolveJsonModule": true, "isolatedModules": true, - "jsx": "preserve", + "jsx": "react-jsx", "types": [ "bun-types" // add Bun global ],