-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathvite.config.ts
50 lines (49 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
41
42
43
44
45
46
47
48
49
50
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import eslint from "vite-plugin-eslint";
import wasm from "vite-plugin-wasm";
import topLevelAwait from "vite-plugin-top-level-await";
import { nodePolyfills } from "vite-plugin-node-polyfills";
import path from "path";
export default defineConfig({
plugins: [
react(),
wasm(),
topLevelAwait(),
eslint(),
nodePolyfills({
include: ["buffer"],
}),
],
server: {
port: 3000,
fs: {
strict: false,
},
},
resolve: {
alias: [
{
find: /@geo-web\/mud-world-base-contracts/,
replacement: path.resolve(
__dirname,
"node_modules",
"@geo-web",
"mud-world-base-contracts"
),
},
],
},
define: {
"process.env": {},
"process.browser": {},
},
optimizeDeps: {
exclude: ["as-geo-web-coordinate"],
},
build: {
target: "es2020",
minify: true,
sourcemap: false,
},
});