-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
43 lines (42 loc) · 844 Bytes
/
vite.config.ts
File metadata and controls
43 lines (42 loc) · 844 Bytes
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
import { defineConfig } from 'vite';
import { builtinModules } from 'module';
export default defineConfig({
build: {
// Build options
target: 'esnext',
outDir: 'dist',
minify: false,
lib: {
entry: 'src/index.ts',
formats: ['es'],
fileName: 'index'
},
rollupOptions: {
external: [
// Exclude node builtins and dependencies
...builtinModules,
'react',
'react-dom',
'@linear/sdk',
'commander',
'conf',
'csv-parse',
'csv-stringify',
'ink',
'ink-link',
'ink-text-input',
'marked',
'marked-terminal',
'table',
'zustand'
]
}
},
resolve: {
alias: {
'@': '/src',
'@components': '/src/components',
'@store': '/src/store'
}
}
});