-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.lib.ts
64 lines (63 loc) · 1.11 KB
/
vite.config.lib.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
60
61
62
63
64
import AutoImport from 'unplugin-auto-import/vite'
import { r } from './scripts/utils'
export const optimizeDeps = {
include: [
'vue',
'@vueuse/core',
'webextension-polyfill',
],
exclude: [
'vue-demi',
],
}
export const theAutoImport = AutoImport({
imports: [
'vue',
'vue-router',
'@vueuse/core',
{
'webextension-polyfill': [
['*', 'browser'],
],
'lodash': [
'isEqual',
'uniq',
'random',
'find',
'findIndex',
'pick',
'remove',
'some',
'trim',
'merge',
'forEach',
'kebabCase',
'pickBy',
'get',
'map',
'reverse',
'cloneDeep',
'filter',
'sortBy',
'truncate',
'keyBy',
'groupBy',
'upperFirst',
'take',
'reverse',
'slice',
'shuffle',
],
'pinia': [
'acceptHMRUpdate',
'defineStore',
'storeToRefs',
],
},
],
dirs: [
r('src/stores'),
r('src/composables'),
],
dts: r('src/auto-imports.d.ts'),
})