-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
40 lines (33 loc) · 1005 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
37
38
39
40
import { nodePolyfills } from "vite-plugin-node-polyfills";
import react from "@vitejs/plugin-react-swc";
import svgr from "vite-plugin-svgr";
import { defineConfig } from "vite";
import path from "path";
export default defineConfig({
build: {
rollupOptions: {
output: {
manualChunks: {
react: ["react-dom", "react"],
telegram: ["@telegram-apps/sdk-react"],
other: ["class-variance-authority", "tailwind-merge", "clsx", "big.js", "@react-hook/resize-observer"],
radix: ["@radix-ui/react-slot", "@radix-ui/react-tabs"],
reatom: ["@reatom/npm-react", "@reatom/framework"],
zod: ["zod"],
evaa: ["@evaafi/sdk"],
ton: ["@ton/ton"],
},
},
},
sourcemap: false,
},
resolve: {
alias: {
"~": path.resolve(__dirname, "./src"),
},
},
server: {
host: true,
},
plugins: [react(), svgr(), nodePolyfills({ include: ["buffer"], globals: { Buffer: true } })],
});