Replies: 2 comments 2 replies
-
We've discussed to ignore all |
Beta Was this translation helpful? Give feedback.
-
This doesn't seem to be the case currently, but fs router exclusion can be also done in waku/packages/waku/src/router/fs-router.ts Lines 6 to 17 in 4585faa waku/packages/waku/src/lib/utils/managed.ts Lines 14 to 15 in 4585faa I haven't tested, but for example, something like this might work: fsRouter(import.meta.glob(["/src/pages/**\/*.tsx", "**/-*/**"], { base: "/src/pages" }), ...) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Waku currently only excludes
_components
and_hooks
from routing.I think it would be helpful for co-location if we extended this to also exclude any dirs and files with
-
prefix from routing.Example:
Reference from TanStack Router: https://tanstack.com/router/latest/docs/framework/react/routing/routing-concepts#excluding-files-and-folders-from-routes
I think the implementation would be easy, basically just updating the code below, so if you agree with this feature request, I'll open a PR.
https://github.com/wakujs/waku/blob/6455aecddd2404e09ac509184b21efadc6483abd/packages/waku/src/lib/utils/fs-router.ts
Beta Was this translation helpful? Give feedback.
All reactions