Remove react/jsx-dev-runtime dynamic browser import

This commit is contained in:
2026-03-25 15:48:05 +01:00
parent 321c8ebb89
commit dad5cffaac
7 changed files with 13 additions and 13 deletions
@@ -76,10 +76,10 @@ export default async function genWebHTML({
"react/jsx-runtime": `https://esm.sh/react@${_reactVersion}/jsx-runtime`,
};
if (dev) {
browser_imports["react/jsx-dev-runtime"] =
`https://esm.sh/react@${_reactVersion}/jsx-dev-runtime`;
}
// if (dev) {
// browser_imports["react/jsx-dev-runtime"] =
// `https://esm.sh/react@${_reactVersion}/jsx-dev-runtime`;
// }
const importMap = JSON.stringify({
imports: browser_imports,