-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvite.config.ts
46 lines (44 loc) · 945 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
import { defineConfig } from 'vite';
import { sentryVitePlugin } from '@sentry/vite-plugin';
import react from '@vitejs/plugin-react';
// @ts-ignore
import tailwindcss from '@tailwindcss/vite';
import { nodePolyfills } from 'vite-plugin-node-polyfills';
export default defineConfig({
plugins: [
react(),
nodePolyfills(),
tailwindcss(),
sentryVitePlugin({
org: 'satoshipay',
project: 'vortex',
}),
],
esbuild: {
logOverride: { 'this-is-undefined-in-esm': 'silent' },
},
build: {
target: 'esnext',
sourcemap: true,
},
// @ts-ignore
test: {
globals: true,
environment: 'happy-dom',
testTimeout: 15000,
},
optimizeDeps: {
exclude: [],
esbuildOptions: {
// Node.js global to browser globalThis
define: {
global: 'globalThis',
},
target: 'esnext',
supported: {
bigint: true,
},
plugins: [],
},
},
});