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
{{ message }}
Repository navigation
Format requirement for routes.tsx is too strict #19181
The requirement that routes.tsx contains export const { router, routes } = new RouterConfigurationBuilder() is too strict in case I want to manually modify the routes value before it's exported. In that case, I would want to structure my code like this:
const { router, originalRoutes } = new RouterConfigurationBuilder();
.withFallback(Flow)
.build();
const routes = originalRoutes; // This is where the modification would be done
export { router, routes }
If I use this structure, then Flow will complain that routes.tsx doesn't export routes even though it's indeed doing that.
Expected behavior
There will be an obvious way of customizing the routes beyond what's easily doable through RouterConfigurationBuilder.
Minimal reproducible example
Get any starter from anywhere
Add a routes.tsx file with the content described above
Activity
fix: Use less strict regexp for export validation (#19203)