You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because routes need to be serialize during build time then pass to frontend, so if you want to include some logic in props, try to extends routes in your entry point. ex. main.ts
Describe the bug
Since
yml
andjson5
don't allow us to write JS functions, I tried to extend a route usingextendRoute
, however that fails when writing functions too.Config
Output
Reproduction
https://stackblitz.com/edit/vitejs-vite-zwtdaf?file=vite.config.ts
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: