Skip to content

Commit d7b9abb

Browse files
committed
fix(kleros-app): externalize-deps
1 parent 3cd5189 commit d7b9abb

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

kleros-app/vite.config.js

Lines changed: 15 additions & 15 deletions
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
});

0 commit comments

Comments
 (0)