Fragment too
This commit is contained in:
parent
6dde10c2ae
commit
5fb3b0333d
|
|
@ -83,6 +83,7 @@ export async function transpile(path: string): Promise<string> {
|
|||
const code = await Bun.file(path).text()
|
||||
cached = transpiler.transformSync(code)
|
||||
cached = cached.replaceAll(/\bjsxDEV_?\w*\(/g, "jsx(")
|
||||
cached = cached.replaceAll(/\bFragment_?\w*,/g, "Fragment,")
|
||||
|
||||
transpileCache[key] = cached
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user