-
Notifications
You must be signed in to change notification settings - Fork 1
/
vite.config.ts
37 lines (36 loc) · 928 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
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import legacy from '@vitejs/plugin-legacy';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
react(),
legacy({
targets: ['>0.3%', 'defaults'],
}),
],
define: {
global: 'window',
},
resolve: {
alias: {
eventemitter3: 'eventemitter3/umd/eventemitter3.js',
},
},
build: {
// Set false to speed up build process, should change to `true` for production mode.
minify: false,
},
optimizeDeps: {
// Clear the array to optimize the dependencies
exclude: [
'@tronweb3/tronwallet-adapters',
'@tronweb3/tronwallet-adapter-tronlink',
'@tronweb3/tronwallet-abstract-adapter',
],
},
server: {
host: '0.0.0.0',
port: 3000,
},
});