forked from drips-network/app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
42 lines (40 loc) · 895 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
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vitest/config';
import { nodePolyfills } from 'vite-plugin-node-polyfills';
const config = defineConfig({
plugins: [sveltekit(), nodePolyfills()],
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',
],
},
},
build: {
target: 'es2020',
},
optimizeDeps: {
esbuildOptions: {
target: 'es2020',
},
},
preview: {
host: '0.0.0.0',
},
resolve: {
alias: {
// Required for octokit.
'node-fetch': 'isomorphic-fetch',
},
},
});
export default config;