Files
modeling-app/vite.config.ts
Paul Tagliamonte f5e233d8a0 Finish removing Sentry (#1588)
Finish removing Sentry

Following Frank's PR in 8f5034f997, I'm
sending up a PR to finish pulling Sentry out of the codebase, rather
than just disabling it via configuration.

F

Signed-off-by: Paul R. Tagliamonte <paul@kittycad.io>
2024-02-29 16:41:20 -05:00

42 lines
998 B
TypeScript

import react from '@vitejs/plugin-react'
import viteTsconfigPaths from 'vite-tsconfig-paths'
import eslint from 'vite-plugin-eslint'
import dns from 'dns'
import { defineConfig, configDefaults } from 'vitest/config'
import version from 'vite-plugin-package-version'
// Only needed because we run Node < 17
// and we want to open `localhost` not `127.0.0.1` on server start
// reference: https://vitejs.dev/config/server-options.html#server-host
dns.setDefaultResultOrder('verbatim')
const config = defineConfig({
server: {
open: true,
port: 3000,
},
test: {
globals: true,
setupFiles: 'src/setupTests.ts',
environment: 'happy-dom',
coverage: {
provider: 'istanbul' // or 'v8'
},
exclude: [...configDefaults.exclude, '**/e2e/playwright/**/*'],
deps: {
inline: ['vitest-canvas-mock']
}
},
build: {
outDir: 'build',
},
plugins: [
react(),
viteTsconfigPaths(),
eslint(),
version(),
],
})
export default config