-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
50 lines (48 loc) · 1.15 KB
/
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
/// <reference types="vitest" />
import { defineConfig } from 'vite';
export default defineConfig({
test: {
coverage: {
exclude: [
'index.ts',
'src/css.ts',
'src/dom.ts',
'src/types.ts',
'src/conversion.ts',
'src/deprecated.ts',
'coverage/**',
'dist/**',
'**/[.]**',
'packages/*/test?(s)/**',
'**/*.d.ts',
'**/virtual:*',
'**/__x00__*',
'**/\x00*',
'cypress/**',
'test?(s)/**',
'test?(-*).?(c|m)[jt]s?(x)',
'**/*{.,-}{test,spec}.?(c|m)[jt]s?(x)',
'**/__tests__/**',
'**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*',
'**/vitest.{workspace,projects}.[jt]s?(on)',
'**/.{eslint,mocha,prettier}rc.{?(c|m)js,yml}',
]
},
},
build: {
target: ['es2016', 'chrome65'],
lib: {
entry: 'index.ts',
fileName: 'index',
name: '@busymango/utils',
},
rollupOptions: {
output: {
name: '@busymango/utils',
globals: {
'@busymango/is-esm': '@busymango/is-esm',
},
}
}
},
});