mirror of
https://github.com/Awesome-Technologies/synapse-admin.git
synced 2026-05-29 18:54:33 +00:00
31 lines
688 B
TypeScript
31 lines
688 B
TypeScript
import react from "@vitejs/plugin-react";
|
|
import { defineConfig } from "vite";
|
|
|
|
export default defineConfig(({ mode }) => ({
|
|
plugins: [
|
|
react(),
|
|
],
|
|
server: {
|
|
host: true,
|
|
},
|
|
base: './',
|
|
build: {
|
|
chunkSizeWarningLimit: 1500,
|
|
sourcemap: mode === 'development',
|
|
},
|
|
test: {
|
|
globals: true,
|
|
environment: 'happy-dom',
|
|
setupFiles: "./src/vitest.setup.ts",
|
|
exclude: ["e2e/**"],
|
|
coverage: {
|
|
include: ["src/**/*.{ts,tsx}"],
|
|
exclude: ["src/**/*.test.{ts,tsx}", "src/vitest.setup.ts"],
|
|
reporter: ["text", "html", "json-summary"],
|
|
},
|
|
},
|
|
ssr: {
|
|
noExternal: ['react-dropzone', 'react-admin', 'ra-ui-materialui'],
|
|
},
|
|
}));
|