Skip to content
Source
Sign inSign up
TanStack/router

fix(router-plugin): generate routes and split code with esbuild #8628

OpenSheraff(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromfix/router-plugin-esbuildopened

Showing 8 changed files with 17 additions and 0 deletions (loading 2).

x
0 of 8 viewed, 8 left
5 additions and 0 deletions.changeset/esbuild-router-generation.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+'@tanstack/router-plugin': patch
+---
+​
+Generate the route tree and apply automatic code splitting in the esbuild plugin. Previously the esbuild integration never ran the route generator, so `autoCodeSplitting` silently left every route in the main bundle.
e2e/vue-router/basic-esbuild-file-based/src/routeTree.gen.tsModified
View file
examples/solid/quickstart-esbuild-file-based/src/routeTree.gen.tsModified
View file
7 additions and 0 deletionspackages/router-plugin/src/core/router-code-splitter-plugin.tsModified
View file
@@ -342,6 +342,13 @@
ROOT = process.cwd()
initUserConfig()
+​
+ esbuild: {
+ config() {