-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
44 lines (43 loc) · 759 Bytes
/
vite.config.js
File metadata and controls
44 lines (43 loc) · 759 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
44
import { resolve } from 'path'
import { defineConfig } from 'vitest/config'
import vue from '@vitejs/plugin-vue'
import dts from 'vite-plugin-dts'
export default defineConfig({
test: {
typecheck: {
ignoreSourceErrors: true,
},
},
resolve: {
alias: [
{
find: '@',
replacement: resolve(__dirname, 'src'),
},
],
},
build: {
lib: {
entry: resolve(__dirname, 'src/main.ts'),
name: '@kitbag/query',
fileName: 'kitbag-query',
},
rollupOptions: {
external: ['vue'],
output: {
globals: {
vue: 'Vue',
},
},
},
},
plugins: [
vue(),
dts({
rollupTypes: true,
}),
],
esbuild: {
target: 'es2022',
},
})