Open History to see the last commit
1import { defineConfig } from '@rsbuild/core'
2import { pluginReact } from '@rsbuild/plugin-react'
3import { tanstackRouter } from '@tanstack/router-plugin/rspack'
4β
5export default defineConfig({
6 plugins: [pluginReact()],
7 tools: {
8 rspack: {
9 plugins: [tanstackRouter({ target: 'react', autoCodeSplitting: true })],
10 },
11 },
12})