astahmer / pandabox

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

[optimizeJs] - Issue with closed tags #59

Open Emiliano-Bucci opened 3 months ago

Emiliano-Bucci commented 3 months 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  |  
   |  ^