-
Notifications
You must be signed in to change notification settings - Fork 19
/
vite.config.ts
44 lines (42 loc) · 930 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
import { sentrySvelteKit } from '@sentry/sveltekit';
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vitest/config';
const config = defineConfig({
plugins: [sentrySvelteKit(), sveltekit()],
test: {
// Jest like globals
globals: true,
environment: 'jsdom',
include: ['src/**/*.{test,spec}.ts'],
exclude: ['src/e2e-tests/.tmp/**'],
setupFiles: ['./setup-test.js'],
deps: {
inline: [
'@ethersproject/signing-key',
'@ethersproject/basex',
'@depay/solana-web3.js',
'cupertino-pane',
],
},
testTimeout: 7000,
},
build: {
target: 'es2020',
},
optimizeDeps: {
exclude: [],
esbuildOptions: {
target: 'es2020',
},
},
preview: {
host: '0.0.0.0',
},
resolve: {
alias: {
// Required for octokit.
'node-fetch': 'isomorphic-fetch',
},
},
});
export default config;