Skip to content

Commit 45dd079

Browse files
committed
🐛 Fix undefined crypto.subtle
1 parent 977d711 commit 45dd079

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

front/vite.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ import react from "@vitejs/plugin-react";
44
// https://vite.dev/config/
55
export default defineConfig({
66
plugins: [react()],
7+
build: {
8+
target: "esnext",
9+
},
710
optimizeDeps: {
811
esbuildOptions: { target: "esnext" },
9-
exclude: ["@noir-lang/noirc_abi", "@noir-lang/acvm_js"],
12+
exclude: ["@noir-lang/noirc_abi", "@noir-lang/acvm_js", "crypto"],
1013
},
1114
});

0 commit comments

Comments
 (0)