mirror of
https://github.com/logos-messaging/OpChan.git
synced 2026-01-02 12:53:10 +00:00
29 lines
520 B
TypeScript
29 lines
520 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react-swc';
|
|
import path from 'path';
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig(() => ({
|
|
server: {
|
|
host: '::',
|
|
port: 8080,
|
|
},
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
buffer: 'buffer',
|
|
},
|
|
},
|
|
optimizeDeps: {
|
|
include: ['buffer'],
|
|
},
|
|
build: {
|
|
target: 'es2022',
|
|
},
|
|
optimizeDeps: {
|
|
exclude: ['@aztec/bb.js'],
|
|
include: ['pino']
|
|
}
|
|
}));
|