Closed MrWangJustToDo closed 1 year ago
Hi,
The difference is that the swc plugin is not "pre" transform, so you need to put it before other plugins in the plugins list so that they don't have parsing issues with JSX
thanks a lot! now everything works perfectly
vite-plugin-react
, every thing work fine. but when i switch to use this plugin, i have a build error. i have not idea why this happen. here is my repo link https://github.com/MrWangJustToDo/react-ssr-setuppnpm install & pnpm run build:packages
ui
dir, change.env
config,FRAMEWROK=vite SWC=true
pnpm run dev:ui
this error will happenhope someone can give me any help, thanks