Skip to content

Commit ce101b9

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

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

ui/vite.config.ts

+12-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
import { defineConfig } from 'vite';
22
import react from '@vitejs/plugin-react';
3-
4-
// https://vitejs.dev/config/
53
export default defineConfig({
64
plugins: [react()],
5+
resolve: {
6+
alias: {
7+
'@noble/hashes/sha256': '../node_modules/@noble/hashes/src/sha256.ts',
8+
'@noble/hashes/sha3': '../node_modules/@noble/hashes/src/sha3.ts',
9+
'@noble/hashes/ripemd160':
10+
'../node_modules/@noble/hashes/src/ripemd160.ts',
11+
'@noble/hashes/sha512': '../node_modules/@noble/hashes/src/sha512.ts',
12+
'@noble/hashes/pbkdf2': '../node_modules/@noble/hashes/src/pbkdf2.ts',
13+
'@noble/hashes/utils': '../node_modules/@noble/hashes/src/utils.ts',
14+
'@noble/hashes/crypto': '../node_modules/@noble/hashes/src/crypto.ts',
15+
},
16+
},
717
});

0 commit comments

Comments
 (0)