generated from ipfs-examples/example-fork-go-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.js
29 lines (27 loc) · 1.01 KB
/
vite.config.js
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'
export default defineConfig({
build: {
target: 'es2020',
minify: false,
// disable @rollup/plugin-commonjs https://github.com/vitejs/vite/issues/9703#issuecomment-1216662109
// should be removable with vite 4 https://vitejs.dev/blog/announcing-vite3.html#esbuild-deps-optimization-at-build-time-experimental
commonjsOptions: {
include: []
}
},
define: {
'process.env.NODE_DEBUG': 'false',
'global': 'globalThis'
},
optimizeDeps: {
// enable esbuild dep optimization during build https://github.com/vitejs/vite/issues/9703#issuecomment-1216662109
// should be removable with vite 4 https://vitejs.dev/blog/announcing-vite3.html#esbuild-deps-optimization-at-build-time-experimental
disabled: false,
// target: es2020 added as workaround to make big ints work
// - should be removable with vite 4
// https://github.com/vitejs/vite/issues/9062#issuecomment-1182818044
esbuildOptions: {
target: 'es2020'
}
}
})