-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
29 lines (28 loc) · 796 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
import { defineConfig } from "vite";
import viteReactSwc from "@vitejs/plugin-react-swc";
import { TanStackRouterVite } from "@tanstack/router-plugin/vite";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [TanStackRouterVite(), viteReactSwc()],
resolve: {
alias: {
api: "/src/api",
app: "/src/app",
assets: "/src/assets",
atoms: "/src/atoms",
components: "/src/components",
generated: "/src/generated",
hooks: "/src/hooks",
localization: "/src/localization",
mapbox: "/src/mapbox",
routes: "/src/routes",
src: "/src",
theme: "/src/theme",
types: "/src/types",
utils: "/src/utils",
},
},
optimizeDeps: {
exclude: ["@mapbox/search-js-core", "@dnd-kit/sortable"],
},
});