Skip to content
Source
Sign inSign up
TanStack/router

refactor(start): use a single Rsbuild compiler loader #8832

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

Showing 12 changed files with 38 additions and 4 deletions (loading 9).

x
0 of 12 viewed, 12 left
5 additions and 0 deletions.changeset/empty-birds-crash.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+'@tanstack/start-plugin-core': patch
+---
+​
+Run Rsbuild Start compilation and server-function metadata writes in a single pre loader, preserving source maps, transform ordering, and persistent-cache replay.
4 additions and 4 deletionse2e/react-start/rsbuild/tests/error-overlay.spec.tsModified
View file
@@ -194,8 +194,8 @@
.replaceAll(fixtureRoot, '<fixture-root>')
.replaceAll(workspaceRoot, '<workspace-root>')
.replace(
- /from [^)]+@rsbuild\/core\/dist\/transformLoader\.mjs/g,
- 'from <rsbuild-transform-loader>',
+ /from [^)]+(?:@rsbuild\/core\/dist\/transformLoader\.mjs|start-plugin-core\/dist\/esm\/rsbuild\/start-compiler-loader\.js)/g,
+ 'from <start-compiler-loader>',
.replaceAll('\u00d7', 'x')
.replaceAll('\u2570\u2500\u25b6', '->')
@@ -378,7 +378,7 @@
"title": "Build failed",
"description": "SyntaxError: Unexpected token (16:22)",
"runtime": "client",
- "sourceFrame": "File: ./src/routes/index.tsx:1:1\\nx Module build failed (from <rsbuild-transform-loader>):\\n-> x SyntaxError: Unexpected token (16:22)",
+ "sourceFrame": "File: ./src/routes/index.tsx:1:1\\nx Module build failed (from <start-compiler-loader>):\\n-> x SyntaxError: Unexpected token (16:22)",
"importTrace": [
"../../../packages/react-start/dist/plugin/default-entry/client.tsx",
"../../../packages/react-start/dist/esm/client.js",