Skip to content

Commit 3ea7159

Browse files
committed
fix(vite.config.ts): added resolutions for @noble/hashes dependencies
1 parent 9d19556 commit 3ea7159

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

ui/vite.config.ts

+12
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,16 @@ import react from '@vitejs/plugin-react';
44
// https://vitejs.dev/config/
55
export default defineConfig({
66
plugins: [react()],
7+
resolve: {
8+
alias: {
9+
'@noble/hashes/sha256': '../node_modules/@noble/hashes/src/sha256.ts',
10+
'@noble/hashes/sha3': '../node_modules/@noble/hashes/src/sha3.ts',
11+
'@noble/hashes/ripemd160': '../node_modules/@noble/hashes/src/ripemd160.ts',
12+
'@noble/hashes/sha512': '../node_modules/@noble/hashes/src/sha512.ts',
13+
'@noble/hashes/pbkdf2': '../node_modules/@noble/hashes/src/pbkdf2.ts',
14+
'@noble/hashes/utils': '../node_modules/@noble/hashes/src/utils.ts',
15+
'@noble/hashes/crypto': '../node_modules/@noble/hashes/src/crypto.ts',
16+
17+
},
18+
},
719
});

0 commit comments

Comments
 (0)