Fragment too

This commit is contained in:
Chris Wanstrath 2025-09-27 18:10:46 -07:00
parent 6dde10c2ae
commit 5fb3b0333d

View File

@ -83,6 +83,7 @@ export async function transpile(path: string): Promise<string> {
const code = await Bun.file(path).text() const code = await Bun.file(path).text()
cached = transpiler.transformSync(code) cached = transpiler.transformSync(code)
cached = cached.replaceAll(/\bjsxDEV_?\w*\(/g, "jsx(") cached = cached.replaceAll(/\bjsxDEV_?\w*\(/g, "jsx(")
cached = cached.replaceAll(/\bFragment_?\w*,/g, "Fragment,")
transpileCache[key] = cached transpileCache[key] = cached
} }