-
-
Notifications
You must be signed in to change notification settings - Fork 49
/
vite.config.ts
41 lines (40 loc) · 1.33 KB
/
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
37
38
39
40
41
import { resolve } from "path";
import solidPlugin from "vite-plugin-solid";
import { defineConfig } from "vitest/config";
export default defineConfig({
plugins: [solidPlugin({})],
build: {
target: "esnext",
},
test: {
benchmark: {
include: ["./packages/*/{src,test}/**/*.bench.{ts,tsx}"],
},
include: ["./packages/*/{src,test}/**/*.test.{ts,tsx}"],
environment: "jsdom",
typecheck: {
ignoreSourceErrors: true,
include: [
"./packages/system/test/styled.test.tsx",
"./packages/system/src/Box/Box.test.tsx",
],
},
testTransformMode: {
web: ["*.js", "*.jsx", "*.ts", "*.tsx"],
},
},
resolve: {
conditions: ["development", "browser"],
alias: {
"@suid/types": resolve(__dirname, "packages/types/src"),
"@suid/codemod": resolve(__dirname, "packages/codemod/src"),
"@suid/css": resolve(__dirname, "packages/css/src"),
"@suid/utils": resolve(__dirname, "packages/utils/src"),
"@suid/styled-engine": resolve(__dirname, "packages/styled-engine/src"),
"@suid/base": resolve(__dirname, "packages/base/src"),
"@suid/system": resolve(__dirname, "packages/system/src"),
"@suid/material": resolve(__dirname, "packages/material/src"),
"@suid/icons-material": resolve(__dirname, "packages/icons-material/lib"),
},
},
});