Peercord/Peercord Source/vite.config.js
0% [█ █ █ █ █ █ █ █ █ █] 100% 29e61f07f2 Full source
2026-06-14 21:28:04 -05:00

46 lines
816 B
JavaScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
base: './',
optimizeDeps: {
exclude:[
'hyperswarm',
'b4a',
'sodium-native',
'corestore',
'hypercore',
'autobase',
'hyperbee',
'pear-runtime',
'os',
'http',
'child_process'
]
},
build: {
outDir: 'dist',
emptyOutDir: true,
rollupOptions: {
external:[
'hyperswarm',
'b4a',
'sodium-native',
'corestore',
'hypercore',
'autobase',
'hyperbee',
'pear-runtime',
'events',
'fs',
'path',
'crypto',
'stream',
'os',
'http',
'child_process'
]
}
}
})