-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvite.config.ts
More file actions
27 lines (26 loc) · 770 Bytes
/
vite.config.ts
File metadata and controls
27 lines (26 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'
// https://vitejs.dev/config/
export default defineConfig(async ({ mode }) => ({
server: {
host: "::",
port: 3000,
},
plugins: [
react(),
mode === 'development' ? (await import('lovable-tagger')).componentTagger() : null,
].filter(Boolean),
resolve: {
alias: {
// Alias the monorepo package to its source directory
'qakulib': path.resolve(__dirname, './packages/lib/src/index.ts'),
'@': path.resolve(__dirname, './src'),
},
// Dedupe dependencies to avoid multiple instances
dedupe: ['ethers', 'react', 'react-dom', '@waku/sdk', '@waku/interfaces'],
},
optimizeDeps: {
exclude: ['qakulib'],
},
}))