Surpress react/jsx-runtime errors

This commit is contained in:
2026-03-25 16:03:45 +01:00
parent b8bae51b32
commit 764e8f76f0
5 changed files with 23 additions and 3 deletions
+1
View File
@@ -49,6 +49,7 @@ export default async function genWebHTML({ component, pageProps, bundledMap, mod
"react-dom": `https://esm.sh/react-dom@${_reactVersion}`,
"react-dom/client": `https://esm.sh/react-dom@${_reactVersion}/client`,
"react/jsx-runtime": `https://esm.sh/react@${_reactVersion}/jsx-runtime`,
"react/jsx-dev-runtime": `https://esm.sh/react@${_reactVersion}/jsx-dev-runtime`,
};
// if (dev) {
// browser_imports["react/jsx-dev-runtime"] =