mirror of
https://github.com/prymitive/karma
synced 2026-05-05 03:16:51 +00:00
37 lines
719 B
TypeScript
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
|
|
}
|
|
});
|