astahmer / pandabox

a toolbox for Panda CSS
https://pandabox.vercel.app/
48 stars 3 forks source link

[optimizeJs] - Issue with closed tags #59

Open Emiliano-Bucci opened 1 month ago

Emiliano-Bucci commented 1 month ago

Hi, it seems that when using pandabox.vite in a react app with a closed tag

 pandabox.vite({
  optimizeJs: "auto",
}),

like this:

<Flex h="100px />

I get this error:

The character "}" is not valid inside a JSX element
5  |  export function LottieLoader() {
6  |    return <div className="d_flex w_160px h_160px" id="LOADER">;
7  |  }
   |  ^
8  |  

Unexpected end of file before a closing "div" tag
6  |    return <div className="d_flex w_160px h_160px" id="LOADER">;
7  |  }
8  |  
   |  ^