fix(vite): support jsx namespaces (#3539)

Babel throws when encountering jsx namespaces by default. It needs a
setting to not throw.
This commit is contained in:
Marvin Hagemeister
2025-10-08 11:30:07 +02:00
committed by GitHub
parent a2c9350cc4
commit 6c03a9bc26
4 changed files with 22 additions and 0 deletions
@@ -490,3 +490,14 @@ Deno.test({
sanitizeOps: false,
sanitizeResources: false,
});
Deno.test({
name: "vite dev - support jsx namespace",
fn: async () => {
const res = await fetch(`${demoServer.address()}/tests/jsx_namespace`);
const text = await res.text();
expect(text).toContain(`xml:space="preserve"`);
},
sanitizeOps: false,
sanitizeResources: false,
});