OpChan/app/vite.config.ts
Danish Arora cc29a30bd9
wip
2025-09-18 17:02:11 +05:30

25 lines
478 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', '@opchan/core', '@opchan/hooks'],
},
build: {
target: 'es2022',
},
}));