Files
karma/ui/vite.config.ts
2026-03-20 17:38:47 +00:00

37 lines
719 B
TypeScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import legacy from "@vitejs/plugin-legacy";
export default defineConfig({
base: "./",
plugins: [react(), legacy()],
server: {
open: true,
port: 3000,
},
css: {
preprocessorOptions: {
scss: {
silenceDeprecations: [
"abs-percent",
"import",
"if-function",
"duplicate-var-flags",
"global-builtin",
"color-functions",
],
},
},
},
legacy: {
// e2e tests broke after upgrade to Vite v8, this fixes it.
inconsistentCjsInterop: true,
},
build: {
sourcemap: true,
},
resolve: {
tsconfigPaths: true
}
});