Files
NostrCounter/vite.config.ts
2025-07-19 09:31:12 +02:00

22 lines
414 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
define: {
global: 'globalThis',
},
server: {
port: 3000,
},
build: {
rollupOptions: {
output: {
manualChunks: {
ndk: ['@nostr-dev-kit/ndk'],
vendor: ['react', 'react-dom', 'react-router-dom'],
},
},
},
},
})