Type cast in one line arrow function () => ({} as Type)
cause vite:esbuild transform error
#348
Closed
7 tasks done
Labels
bug: upstream
Bug in a dependency of Vite
Describe the bug
Type cast in useMemo
() => ({} as Type)
cause vite:esbuild transform error.code:
error msg:
similar code like below doesn't cause error in vanilla vite, but errors with this plugin
Reproduction
https://stackblitz.com/edit/vitejs-vite-l8ggg5?file=src%2FApp.tsx
Steps to reproduce
Run
npm install
thennpm run dev
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: