Skip to content

Commit

Permalink
fix(vite.config.ts): added resolutions for @noble/hashes dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Jovonni committed Aug 16, 2024
1 parent 9d19556 commit 3ea7159
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ui/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,16 @@ import react from '@vitejs/plugin-react';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@noble/hashes/sha256': '../node_modules/@noble/hashes/src/sha256.ts',
'@noble/hashes/sha3': '../node_modules/@noble/hashes/src/sha3.ts',
'@noble/hashes/ripemd160': '../node_modules/@noble/hashes/src/ripemd160.ts',
'@noble/hashes/sha512': '../node_modules/@noble/hashes/src/sha512.ts',
'@noble/hashes/pbkdf2': '../node_modules/@noble/hashes/src/pbkdf2.ts',
'@noble/hashes/utils': '../node_modules/@noble/hashes/src/utils.ts',
'@noble/hashes/crypto': '../node_modules/@noble/hashes/src/crypto.ts',

},
},
});

0 comments on commit 3ea7159

Please sign in to comment.