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 ce101b9
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions ui/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
import { defineConfig } from 'vite';
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 ce101b9

Please sign in to comment.