Skip to content

Commit daafcdc

Browse files
authored
Updated vite config to better handle import types (#530)
no ref
1 parent 341b0e5 commit daafcdc

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

packages/referrer-parser/vite.config.ts

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,8 @@ export default defineConfig({
1919
plugins: [
2020
dts({
2121
include: ['index.ts', 'lib/**/*.ts'],
22-
exclude: ['test', 'node_modules']
22+
exclude: ['test', 'node_modules'],
23+
rollupTypes: true
2324
})
24-
],
25-
test: {
26-
globals: true,
27-
environment: 'node',
28-
include: ['./test/**/*.test.ts'],
29-
coverage: {
30-
reporter: ['text', 'json', 'html'],
31-
include: ['index.ts', 'lib/**/*.ts'],
32-
exclude: ['**/node_modules/**', '**/test/**', '**/*.d.ts']
33-
}
34-
}
25+
]
3526
});

packages/referrer-parser/vitest.config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import { defineConfig } from 'vitest/config';
2-
import { resolve } from 'path';
32

43
export default defineConfig({
54
test: {
65
globals: true,
76
environment: 'node',
87
include: ['./test/**/*.test.ts'],
98
coverage: {
10-
provider: 'v8',
119
reporter: ['text', 'json', 'html'],
1210
include: ['index.ts', 'lib/**/*.ts'],
1311
exclude: ['**/node_modules/**', '**/test/**', '**/*.d.ts']

0 commit comments

Comments
 (0)