♻️ refactor: fix production build

This commit is contained in:
2024-12-04 15:04:18 +00:00
parent 1749797bca
commit 4a0fa4a486
10 changed files with 135 additions and 116 deletions
+7 -10
View File
@@ -1,21 +1,18 @@
import { defineConfig } from 'vitest/config'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
import viteTsconfigPaths from 'vite-tsconfig-paths'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), viteTsconfigPaths()],
resolve: {
alias: {
components: '/src/components',
style: '/src/style',
},
},
server: {
open: true,
host: true,
},
test: {
watch: false,
globals: true,
environment: 'jsdom',
setupFiles: ['./vitest.setup.ts'],
coverage: {
provider: 'istanbul',
},
},
})