-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvite.config.ts
59 lines (55 loc) · 956 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
47
48
49
50
51
52
53
54
55
56
57
58
59
import path from 'node:path';
import { defineConfig } from 'vite';
import solid from 'vite-plugin-solid';
export default defineConfig({
esbuild: {
target: 'es2023',
},
build: {
target: 'es2023',
modulePreload: false,
sourcemap: true,
assetsInlineLimit: 0,
minify: 'terser',
rollupOptions: {
output: {
chunkFileNames: 'assets/[hash].js',
manualChunks: {
common: [
'solid-js',
'solid-js/store',
'solid-js/web',
'@atcute/client',
'@mary/events',
'src/globals/navigation.ts',
'src/globals/preferences.ts',
'src/globals/rpc.ts',
],
shell: ['src/shell.tsx'],
},
},
},
terserOptions: {
compress: {
passes: 3,
},
},
},
server: {
port: 10555,
},
resolve: {
alias: {
'~': path.join(__dirname, './src'),
},
},
plugins: [
solid({
babel: {
parserOpts: {
plugins: ['explicitResourceManagement'],
},
},
}),
],
});