Open History to see the last commit
1import { defineConfig } from '@rsbuild/core'
2import { pluginSolid } from '@rsbuild/plugin-solid'
3import { tanstackRouter } from '@tanstack/router-plugin/rspack'
4import { pluginBabel } from '@rsbuild/plugin-babel'
5β
6export default defineConfig({
7 plugins: [
8 pluginBabel({
9 include: /\.(?:jsx|tsx)$/,
10 }),
11 pluginSolid(),
12 ],
13 tools: {
14 rspack: {
15 plugins: [tanstackRouter({ target: 'solid', autoCodeSplitting: true })],
16 },
17 },
18})