24 lines
539 B
TypeScript
Raw Normal View History

2023-01-13 15:51:21 +01:00
import { tamaguiPlugin } from '@tamagui/vite-plugin'
2023-01-10 12:24:24 +01:00
import react from '@vitejs/plugin-react-swc'
import { defineConfig } from 'vite'
2023-01-13 15:51:21 +01:00
import type { PluginOption } from 'vite'
2023-01-10 12:24:24 +01:00
const tamaguiConfig = {
components: [],
2023-01-13 15:51:21 +01:00
config: './src/tamagui.config.ts',
2023-01-10 12:24:24 +01:00
// useReactNativeWebLite: true,
}
// https://vitejs.dev/config
export default defineConfig({
define: {
2023-01-13 15:51:21 +01:00
TAMAGUI_TARGET: JSON.stringify('web'),
2023-01-10 12:24:24 +01:00
},
plugins: [
react(),
2023-01-13 15:51:21 +01:00
tamaguiPlugin(tamaguiConfig) as PluginOption,
2023-01-10 12:24:24 +01:00
// tamaguiExtractPlugin(tamaguiConfig)
2023-01-13 15:51:21 +01:00
],
2023-01-10 12:24:24 +01:00
})