-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathvite.config.ts
41 lines (38 loc) · 853 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
import { fileURLToPath } from 'node:url'
import { defineConfig } from 'vitest/config'
function resolve(path: string): string {
return fileURLToPath(new URL(path, import.meta.url))
}
export default defineConfig({
root: resolve('example'),
build: {
emptyOutDir: true,
outDir: resolve('build'),
rollupOptions: {
input: [
resolve('example/index.html'),
resolve('example/json.html'),
resolve('example/typescript.html')
]
}
},
resolve: {
alias: {
'codemirror-languageservice': resolve('src/codemirror-languageservice')
}
},
test: {
root: resolve('./'),
browser: {
enabled: true,
headless: true,
name: 'chromium',
provider: 'playwright'
},
coverage: {
enabled: true,
include: ['src'],
provider: 'istanbul'
}
}
})