wakuconnect-chat-sdk/apps/vite/vite.config.ts

28 lines
657 B
TypeScript
Raw Normal View History

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