31 lines
775 B
TypeScript
31 lines
775 B
TypeScript
import { defineConfig } from 'vite'
|
|
import { devtools } from '@tanstack/devtools-vite'
|
|
import tsconfigPaths from 'vite-tsconfig-paths'
|
|
import { paraglideVitePlugin } from '@inlang/paraglide-js'
|
|
|
|
import { tanstackStart } from '@tanstack/react-start/plugin/vite'
|
|
|
|
import viteReact from '@vitejs/plugin-react'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
|
|
const config = defineConfig({
|
|
plugins: [
|
|
devtools(),
|
|
paraglideVitePlugin({
|
|
project: './project.inlang',
|
|
outdir: './src/paraglide',
|
|
strategy: ['url', 'baseLocale'],
|
|
}),
|
|
tsconfigPaths({ projects: ['./tsconfig.json'] }),
|
|
tailwindcss(),
|
|
tanstackStart(),
|
|
viteReact({
|
|
babel: {
|
|
plugins: ['babel-plugin-react-compiler'],
|
|
},
|
|
}),
|
|
],
|
|
})
|
|
|
|
export default config
|