Skip to content
Source
Sign inSign up
TanStack/devtools
Open History to see the last commit

vite.config.ts

25 lines535 Bytes

1import { defineConfig } from 'vite'
2import react from '@vitejs/plugin-react'
3import { devtools } from '@tanstack/devtools-vite'
4import Inspect from 'vite-plugin-inspect'
5import sonda from 'sonda/vite'
6​
7// https://vite.dev/config/
8export default defineConfig({
9 plugins: [
10 devtools({
11 removeDevtoolsOnBuild: true,
12 }),
13​
14 Inspect(),
15 sonda() as any,
16 react({
17 // babel: {
18 // plugins: [['babel-plugin-react-compiler', { target: '19' }]],
19 // },
20 }),
21 ],
22 build: {
23 sourcemap: true,
24 },
25})