-
Notifications
You must be signed in to change notification settings - Fork 4
/
vite.config.ts
34 lines (33 loc) · 991 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
import { defineConfig } from "vitest/config";
export default defineConfig({
build: {
target: "ESNext",
lib: {
entry: {
"ponyfill/asyncIterator": "src/ponyfill/asyncIterator.ts",
"ponyfill/fromAnyIterable": "src/ponyfill/fromAnyIterable.ts",
"ponyfill/index": "src/ponyfill/index.ts",
"polyfill/asyncIterator": "src/polyfill/asyncIterator.ts",
"polyfill/fromAnyIterable": "src/polyfill/fromAnyIterable.ts",
"polyfill/index": "src/polyfill/index.ts",
"index/asyncIterator": "src/index/asyncIterator.ts",
"index/fromAnyIterable": "src/index/fromAnyIterable.ts",
"index/index": "src/index/index.ts",
},
formats: ["es"],
fileName: (_, entryName) => `${entryName}.js`,
},
outDir: "dist",
},
test: {
browser: {
enabled: true,
headless: true,
name: "chromium",
provider: "playwright",
},
coverage: {
provider: "istanbul",
},
},
});