-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
35 lines (33 loc) · 868 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
import { defineConfig } from "vite";
import preact from "@preact/preset-vite";
import sassDts from "vite-plugin-sass-dts";
import path from "path";
export default defineConfig({
resolve: {
"alias": {
"@styles": path.resolve(__dirname, "./src/styles"),
"@components": path.resolve(__dirname, "./src/components"),
"@containers": path.resolve(__dirname, "./src/containers"),
"@utils": path.resolve(__dirname, "./src/utils"),
"@assets": path.resolve(__dirname, "./src/assets"),
"@hooks": path.resolve(__dirname, "./src/hooks"),
}
},
"optimizeDeps": {
"esbuildOptions": {
"target": "es2020"
}
},
plugins: [
preact(),
sassDts({
enabledMode: ["development"],
}),
],
build: {
target: "ESNext",
},
esbuild: {
logOverride: { "this-is-undefined-in-esm": "silent" },
},
});