Skip to content

Commit d87ca5e

Browse files
docs: fix incorrect import path in automatic code splitting guide (#4745)
1 parent ad42069 commit d87ca5e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/router/framework/react/guide/automatic-code-splitting.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ To turn this feature on, simply set the `autoCodeSplitting` option to `true` in
99
```ts
1010
// vite.config.ts
1111
import { defineConfig } from 'vite'
12-
import { tanstackRouter } from '@tanstack/react-router/vite'
12+
import { tanstackRouter } from '@tanstack/router-plugin/vite'
1313

1414
export default defineConfig({
1515
plugins: [
@@ -87,7 +87,7 @@ For example, to bundle all UI-related components into a single chunk, you could
8787
```ts
8888
// vite.config.ts
8989
import { defineConfig } from 'vite'
90-
import { tanstackRouter } from '@tanstack/react-router/vite'
90+
import { tanstackRouter } from '@tanstack/router-plugin/vite'
9191

9292
export default defineConfig({
9393
plugins: [
@@ -115,7 +115,7 @@ For complex rulesets, you can use the `splitBehavior` function in your vite conf
115115
```ts
116116
// vite.config.ts
117117
import { defineConfig } from 'vite'
118-
import { tanstackRouter } from '@tanstack/react-router/vite'
118+
import { tanstackRouter } from '@tanstack/router-plugin/vite'
119119

120120
export default defineConfig({
121121
plugins: [
@@ -179,7 +179,7 @@ The `loader` function is responsible for fetching data needed by the route. By d
179179
```ts
180180
// vite.config.ts
181181
import { defineConfig } from 'vite'
182-
import { tanstackRouter } from '@tanstack/react-router/vite'
182+
import { tanstackRouter } from '@tanstack/router-plugin/vite'
183183

184184
export default defineConfig({
185185
plugins: [

0 commit comments

Comments
 (0)