dappconnect-chat-sdk/packages/components/vite.config.ts

24 lines
539 B
TypeScript
Raw Normal View History

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