[PR #45] [CLOSED] fix(shims): avoid jsx-runtime named exports in error boundary #267

Closed
opened 2026-05-06 12:38:52 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/cloudflare/vinext/pull/45
Author: @liuxiaopai-ai
Created: 2/25/2026
Status: Closed

Base: mainHead: fix/issue-25-jsx-runtime


📝 Commits (2)

  • 6c78417 fix: avoid jsx-runtime named imports in error-boundary shim
  • 5847f3d test: strengthen jsx-runtime compatibility regression coverage

📊 Changes

2 files changed (+72 additions, -7 deletions)

View changed files

📝 packages/vinext/src/shims/error-boundary.tsx (+8 -7)
📝 tests/error-boundary.test.ts (+64 -0)

📄 Description

Addresses #25.

  • Make error-boundary shim resilient to different React packaging by avoiding brittle named imports from react/jsx-runtime
  • Add regression test

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/cloudflare/vinext/pull/45 **Author:** [@liuxiaopai-ai](https://github.com/liuxiaopai-ai) **Created:** 2/25/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/issue-25-jsx-runtime` --- ### 📝 Commits (2) - [`6c78417`](https://github.com/cloudflare/vinext/commit/6c78417b0500c88786af9d96337e765a82a5fdc1) fix: avoid jsx-runtime named imports in error-boundary shim - [`5847f3d`](https://github.com/cloudflare/vinext/commit/5847f3dadfd96b0a26616a1a7f222960903220d2) test: strengthen jsx-runtime compatibility regression coverage ### 📊 Changes **2 files changed** (+72 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `packages/vinext/src/shims/error-boundary.tsx` (+8 -7) 📝 `tests/error-boundary.test.ts` (+64 -0) </details> ### 📄 Description Addresses #25. - Make error-boundary shim resilient to different React packaging by avoiding brittle named imports from react/jsx-runtime - Add regression test --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-06 12:38:52 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vinext#267
No description provided.