Skip to content

Commit 3cd5189

Browse files
fix(kleros-app): wagmi-resolution
1 parent cb912a5 commit 3cd5189

File tree

3 files changed

+18
-16
lines changed

3 files changed

+18
-16
lines changed

kleros-app/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949
"typescript": "^5.6.3",
5050
"vite": "^5.4.11",
5151
"vite-plugin-dts": "^4.3.0",
52-
"vite-plugin-node-polyfills": "^0.22.0"
52+
"vite-plugin-node-polyfills": "^0.22.0",
53+
"wagmi": "^2.14.0"
5354
},
5455
"dependencies": {
5556
"jose": "^5.9.6"

kleros-app/vite.config.js

+15-15
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@ export default defineConfig({
1919
fileName: "kleros-app",
2020
},
2121
sourcemap: true,
22-
rollupOptions: {
23-
// make sure to externalize deps that shouldn't be bundled
24-
// into your library
25-
external: ["react", "react-dom", "viem", "wagmi", "@tanstack/react-query", "graphql", "graphql-request"],
26-
output: {
27-
// Provide global variables to use in the UMD build
28-
// for externalized deps
29-
globals: {
30-
react: "React",
31-
"react-dom": "ReactDOM",
32-
"@tanstack/react-query": "@tanstack/react-query",
33-
"graphql-request": "graphql-request",
34-
},
35-
},
36-
},
22+
// rollupOptions: {
23+
// // make sure to externalize deps that shouldn't be bundled
24+
// // into your library
25+
// external: ["react", "react-dom", "viem", "wagmi", "@tanstack/react-query", "graphql", "graphql-request"],
26+
// output: {
27+
// // Provide global variables to use in the UMD build
28+
// // for externalized deps
29+
// globals: {
30+
// react: "React",
31+
// "react-dom": "ReactDOM",
32+
// "@tanstack/react-query": "@tanstack/react-query",
33+
// "graphql-request": "graphql-request",
34+
// },
35+
// },
36+
// },
3737
},
3838
});

yarn.lock

+1
Original file line numberDiff line numberDiff line change
@@ -5397,6 +5397,7 @@ __metadata:
53975397
vite: "npm:^5.4.11"
53985398
vite-plugin-dts: "npm:^4.3.0"
53995399
vite-plugin-node-polyfills: "npm:^0.22.0"
5400+
wagmi: "npm:^2.14.0"
54005401
peerDependencies:
54015402
"@tanstack/react-query": ^5.59.20
54025403
graphql: ^16.9.0

0 commit comments

Comments
 (0)