-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
34 lines (32 loc) · 1.04 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
import path from "path";
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
import svgr from "vite-plugin-svgr";
export default defineConfig({
plugins: [react(), svgr()],
resolve: {
alias: {
"@components": `${path.resolve(__dirname, "src/components")}`,
"@assets": `${path.resolve(__dirname, "src/assets")}`,
"@pages": `${path.resolve(__dirname, "src/pages")}`,
"@hooks": `${path.resolve(__dirname, "src/hooks")}`,
"@utils": `${path.resolve(__dirname, "src/utils")}`,
"@enums": `${path.resolve(__dirname, "src/enums")}`,
"@models": `${path.resolve(__dirname, "src/models")}`,
"@context": `${path.resolve(__dirname, "src/context")}`,
"@constants": `${path.resolve(__dirname, "src/constants")}`,
"@data": `${path.resolve(__dirname, "src/data")}`,
jsbi: path.resolve(
__dirname,
".",
"node_modules",
"jsbi",
"dist",
"jsbi-cjs.js"
),
},
},
define: {
"global.WebSocket": "globalThis.WebSocket",
},
});