Skip to content

Commit 8cc599a

Browse files
authored
website: enable autoCodeSplitting (#3709)
* website: enable `autoCodeSplitting` * fix type issues
1 parent 6a1fb9e commit 8cc599a

26 files changed

+472
-498
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@
6161
"@ianvs/prettier-plugin-sort-imports": "^4.4.1",
6262
"@linaria/core": "^6.0.0",
6363
"@microsoft/api-extractor": "^7.50.0",
64-
"@tanstack/react-router": "^1.102.5",
65-
"@tanstack/router-plugin": "^1.102.5",
64+
"@tanstack/react-router": "^1.104.1",
65+
"@tanstack/router-plugin": "^1.104.1",
6666
"@testing-library/dom": "^10.1.0",
6767
"@testing-library/react": "^16.2.0",
6868
"@testing-library/user-event": "^14.5.2",
@@ -90,7 +90,7 @@
9090
"jspdf-autotable": "^3.5.23",
9191
"playwright": "^1.50.1",
9292
"postcss": "^8.5.2",
93-
"prettier": "3.5.0",
93+
"prettier": "3.5.1",
9494
"react": "^19.0.0",
9595
"react-dnd": "^16.0.1",
9696
"react-dnd-html5-backend": "^16.0.1",

vite.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ export default defineConfig(({ command }) => ({
4848
!isTest &&
4949
TanStackRouterVite({
5050
generatedRouteTree: 'website/routeTree.gen.ts',
51-
routesDirectory: 'website/routes'
51+
routesDirectory: 'website/routes',
52+
autoCodeSplitting: true
5253
}),
5354
react({
5455
exclude: ['./.cache/**/*']
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { RenderCellProps } from '../../src';
22

3-
export function renderCoordinates(props: RenderCellProps<number>) {
3+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
4+
export function renderCoordinates(props: RenderCellProps<number, any>) {
45
return `${props.column.key}×${props.row}`;
56
}

0 commit comments

Comments
 (0)