Automatic Route Tree Generation in ESBuild
Hi guys, beginner to TanStack Router here. I have an app being built with ESBuild and I wanted to setup file-based routing. However, I had troubles getting the automated routeTree generation to work.
I tried to follow the steps in
CONTRIBUTING.md
but I had immediate build failures for the following.
When experimenting with quickstart-esbuild-file-based
, I found that routeTree.gen.ts
was not being automatically updated when files were being added/changed within src/routes
, despite running npm run dev
.
I'm assuming the router generator was not built, hence resulting in the lack of route generation. However, when trying to use TanStackRouterEsbuild
in my project, it resulted in the same behaviour.
Is this an expected behaviour witih bundling with ESBuild, or did I miss a configuration step?
Thanks in advance.0 Replies