-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvite.config.ts
36 lines (35 loc) · 1018 Bytes
/
vite.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/// <reference types="vitest" />
import { defineConfig } from "vite";
import magicalSvg from "vite-plugin-magical-svg";
import tsconfigPaths from "vite-tsconfig-paths";
import react from "@vitejs/plugin-react";
import path from "path";
export default defineConfig({
test: {
globals: true,
include: ["**/.specs/**/*.+(spec).ts(x)?"],
coverage: {
reporter: ["text", "json", "html"],
},
environment: "jsdom",
},
plugins: [
magicalSvg({
target: "react",
}),
react(),
tsconfigPaths(),
],
resolve: {
alias: {
lib: path.resolve(__dirname, "./lib"),
tests: path.resolve(__dirname, "./tests"),
stories: path.resolve(__dirname, "./stories"),
src: path.resolve(__dirname, "./lib/src"),
components: path.resolve(__dirname, "./lib/src/components"),
modules: path.resolve(__dirname, "./lib/src/modules"),
helpers: path.resolve(__dirname, "./lib/src/helpers"),
assets: path.resolve(__dirname, "./assets"),
},
},
});