Tanner Linsley
861f319bbe
release: v1.166.2
2026-03-04 20:37:33 +00:00
Tanner Linsley
15fe30d41d
release: v1.164.0
2026-03-01 02:32:52 +00:00
Tanner Linsley
5362746356
release: v1.163.5
2026-03-01 01:35:21 +00:00
Tanner Linsley
de66f0e0a0
release: v1.163.3
2026-02-27 22:13:46 +00:00
Tanner Linsley
c4027b6a79
release: v1.163.2
2026-02-25 08:26:16 +00:00
Tanner Linsley
30fdeab01b
release: v1.162.9
2026-02-24 12:50:58 +00:00
Tanner Linsley
ea31c50be9
release: v1.162.8
2026-02-23 22:16:33 +00:00
Tanner Linsley
c137bbc249
release: v1.162.6
2026-02-23 16:37:33 +00:00
Tanner Linsley
54e69075c3
release: v1.162.5
2026-02-23 16:14:51 +00:00
Tanner Linsley
eefcb5f9a6
release: v1.162.4
2026-02-22 22:51:07 +00:00
Tanner Linsley
a562eb496b
release: v1.162.2
2026-02-22 08:42:04 +00:00
Tanner Linsley
3710720cd9
release: v1.162.1
2026-02-21 21:59:16 +00:00
Tanner Linsley
5fcf33e871
release: v1.161.4
2026-02-21 11:18:59 +00:00
Birk Skyum
4def459cb6
testing(vite-ecosystem-ci): add vite as direct dev depencency ( #6709 )
2026-02-20 01:58:27 +01:00
Tanner Linsley
5a8fc3e682
release: v1.161.3
2026-02-20 00:01:06 +00:00
Tanner Linsley
6dfef62add
release: v1.161.1
2026-02-18 08:58:14 +00:00
Tanner Linsley
d5e5fbea6b
release: v1.161.0
2026-02-18 00:19:12 +00:00
Manuel Schiller
711f3b858e
feat: import protection ( #6688 )
2026-02-18 01:16:30 +01:00
Tanner Linsley
08a2d090be
release: v1.160.2
2026-02-16 19:28:33 +00:00
Tanner Linsley
c7bf332590
release: v1.160.1
2026-02-16 18:12:43 +00:00
Tanner Linsley
02d88bf876
release: v1.160.0
2026-02-15 07:06:53 +00:00
Tanner Linsley
c5d328adfd
release: v1.159.14
2026-02-15 01:46:10 +00:00
Manuel Schiller
27d0867ff8
add internal docs for code splitting ( #6661 )
...
* add internal docs for code splitting
* ci: apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-14 21:44:43 +01:00
Kyle Mathews
988a9d6788
test: add invariant and property tests for code-splitter shared bindings ( #6662 )
...
* test: add invariant, property, and exhaustive tests for code-splitter shared bindings
Add 76 new tests across three layers for the shared virtual module
code-splitting logic introduced in #6659 :
Layer 1 - Algebraic property tests on helper functions:
- expandTransitively: idempotence, monotonicity, cycle handling
- buildDependencyGraph: subset invariants
- removeBindingsDependingOnRoute: direct/transitive removal
- expandDestructuredDeclarations: idempotence, sibling expansion
- collectLocalBindingsFromStatement: all declaration types
Layer 2 - Invariant tests on computeSharedBindings:
- Route is never in the shared set
- Results are always real local bindings (never imports)
- Destructured siblings cohesion
- Transitive dependency inclusion
- Route-dependent binding exclusion
- Determinism across repeated calls
Layer 3 - Small-scope exhaustive tests:
- Single binding × 3 declaration kinds × 4 property patterns × 2 groupings
- Two bindings × 4 cross-group reference patterns × 2 groupings
- Transitive dependency chains (linear, 3-deep, diamond)
- Meta-invariant conformance across all shared-* fixture files
Testing approach inspired by:
https://gist.github.com/KyleAMathews/64bcea53a57f600cc3b73bc366d9ac4d
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* ci: apply automated fixes
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-14 18:41:23 +01:00
Tanner Linsley
ffec9c987d
release: v1.159.12
2026-02-14 12:12:57 +00:00
Manuel Schiller
523972e0df
fix: shared virtual module for code-split routes ( #6659 )
...
* fix: shared virtual module for code-split routes
When a route file has module-level bindings (variables, functions, classes) referenced by **both** split and non-split route properties, the bindings are duplicated — initialized independently in the reference file and in each virtual split file. This breaks singletons, causes double side effects, and wastes bundle size.
```tsx
const collection = { name: 'todos', preload: async () => {} }
export const Route = createFileRoute('/todos')({
loader: async () => {
await collection.preload()
}, // stays in reference
component: () => <div>{collection.name}</div>, // split to virtual
})
```
In this example, `collection` is initialized in **both** the reference file (because `loader` references it) and the `?tsr-split=component` virtual file (because the component references it). Two separate instances exist at runtime.
To solve this issue, this PR introduces a third virtual module `route.tsx?tsr-shared=1` that contains shared bindings. Both the reference and virtual files import from it.
When `sharedBindings` is empty (the common case — component-only helpers, loader-only code), no shared module exists and the system works exactly as today.
The reference transform runs first and will emit a static import of `?tsr-shared=1` **only when needed**. Since split chunks are only discovered via the reference file's emitted `import('...?tsr-split=...')`, the bundler will always process/evaluate the reference module first. Result: the shared module is evaluated once and then reused by any later-loaded split chunk.
2026-02-14 13:10:54 +01:00
Tanner Linsley
1afa90e8c6
release: v1.159.11
2026-02-14 01:40:20 +00:00
Manuel Schiller
30dc11e50a
fix: autoCodeSplitting` with destructured export ( #6656 )
...
fixes #4787
2026-02-14 02:26:03 +01:00
Tanner Linsley
f3e3bd44e9
release: v1.159.10
2026-02-14 01:20:49 +00:00
Tanner Linsley
1dde02476a
release: v1.159.9
2026-02-14 00:47:20 +00:00
Tanner Linsley
70effc8db4
release: v1.159.6
2026-02-13 18:36:21 +00:00
Birk Skyum
174be108f2
chore: optimize links to github ( #6633 )
2026-02-10 23:42:52 +01:00
Tanner Linsley
4e1f40f2bc
release: v1.159.5
2026-02-09 13:09:13 +00:00
Tanner Linsley
260f97baea
release: v1.159.4
2026-02-09 00:56:42 +00:00
Tanner Linsley
be8849eee2
release: v1.159.3
2026-02-08 20:08:49 +00:00
Tanner Linsley
ee8fde15b0
release: v1.158.4
2026-02-07 00:02:41 +00:00
Tanner Linsley
119eb54f10
release: v1.158.1
2026-02-05 01:50:59 +00:00
Tanner Linsley
8f59003275
release: v1.158.0
2026-02-03 00:17:18 +00:00
Manuel Schiller
77b18bbdae
fix: strip type exports upon DCE ( #6582 )
2026-02-03 00:48:33 +01:00
Tanner Linsley
916be3d635
release: v1.157.19
2026-02-02 23:29:58 +00:00
Tanner Linsley
fd6eecea6b
release: v1.157.18
2026-01-31 15:42:17 +00:00
Tanner Linsley
497229aa5b
release: v1.157.17
2026-01-30 22:27:03 +00:00
Tanner Linsley
b3aafa09d7
release: v1.157.16
2026-01-26 22:06:20 +00:00
Tanner Linsley
080f818fda
release: v1.157.15
2026-01-26 06:51:04 +00:00
Tanner Linsley
58ed15460f
release: v1.157.14
2026-01-25 22:05:45 +00:00
Tanner Linsley
c16571a660
release: v1.157.13
2026-01-25 21:22:25 +00:00
Tanner Linsley
4748c0e12a
release: v1.157.12
2026-01-25 20:50:33 +00:00
Tanner Linsley
1faa9f3d96
release: v1.157.11
2026-01-25 19:06:50 +00:00
Tanner Linsley
80bb8dd706
release: v1.157.10
2026-01-25 18:10:48 +00:00
Tanner Linsley
1bfa199175
release: v1.157.9
2026-01-25 15:12:26 +00:00