Closed billy4479 closed 2 years ago
Sounds like bundler issues
@billy4479 did you ever figure this out?
Not really, I ended up the Web Crypto API but there are many forks that work fine with Vite, just have a look on npm, they are not as popular as this package but they are there.
I think the author has published an npm package with the changes though.
it is published as @aeternity/argon2-browser
I added this to vite.config.ts
to make it work with vite
resolve: {
alias: {
'argon2-browser': path.resolve(
'path/to/root',
'node_modules/argon2-browser/dist/argon2-bundled.min.js'
),
},
}
I'm using Vite as bundler and Typescript