-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
38 lines (37 loc) · 841 Bytes
/
vite.config.js
File metadata and controls
38 lines (37 loc) · 841 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
import { resolve } from "path";
import { defineConfig } from "vite";
import dts from "vite-plugin-dts";
export default defineConfig({
build: {
lib: {
entry: {
main: resolve(__dirname, "lib/main.ts"),
"integrations/urql": resolve(__dirname, "lib/integrations/urql.ts"),
"integrations/apollo": resolve(
__dirname,
"lib/integrations/apollo.ts",
),
"integrations/react-query": resolve(
__dirname,
"lib/integrations/react-query.ts",
),
},
formats: ["es", "cjs"],
},
rollupOptions: {
external: [
"graphql",
"urql",
"react",
"@apollo/client",
"@tanstack/react-query",
"graphql-ws",
],
},
},
plugins: [
dts({
insertTypesEntry: true,
}),
],
});