Skip to content
Source
Sign inSign up
TanStack/router

fix(start-plugin-core): preload transitive static imports of route chunks #8520

ClosedTiagoGranelli(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/8520/headopened

Showing 3 changed files with 74 additions and 5 deletions.

x
0 of 3 viewed, 3 left
5 additions and 0 deletions.changeset/transitive-route-preloads.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+'@tanstack/start-plugin-core': patch
+---
+​
+Preload the transitive static imports of route and entry chunks when building with Rolldown.
13 additions and 5 deletionspackages/start-plugin-core/src/start-manifest-plugin/manifestBuilder.tsModified
View file
@@ -265,7 +265,10 @@
}): StartManifest {
const scannedChunks = scanClientChunks(options.clientBuild)
- const assetResolvers = createManifestAssetResolvers(options.basePath)
+ const assetResolvers = createManifestAssetResolvers(
+ options.basePath,
+ scannedChunks.chunksByFileName,
+ )
​
const routes = buildRouteManifestRoutes({
routeTreeRoutes: options.routeTreeRoutes,
@@ -355,6 +358,7 @@
​
export function createManifestAssetResolvers(