Replies: 1 comment
-
From a quick glance at the argon2 package, you'd need to modify the source (with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I currently having a test project using Bun and ElysiaJS, specifically for deployment using
bun build --compile
to produce single executable, it was fine and working as intended until I realize that one of the package (for now it'sargon2
) is not bundled or can't be found after I removed or just renamed thenode_modules
into anything else, the server fail to run with this messsage:and my guess is since
argon2
is a (an?)napi
so it couldn't get bundled by bun, even if there's prebuilds.node
file in thenode_modules
directory?so, are there any workaround to make Bun bundled
argon2
? I'm planning to experiment with bun c compiler to compileargon2
and see if it actually work and whether it will get bundled or not (if there's someone already tried this, please tell me how it goes)and for those who asking, why not use
Bun.password
, which I did, and it works, but only for this test project to test migrating my company's project deployment to use bun build, which happened to useargon2
, and the problem is, it can't be migrated intoBun.password
, this is the reason:it uses the
secret
options on hash and verify function, whichBun.password
doesn't have (yet?), so even if I do thisit will result in
false
, so unless Bun add this feature parity, I can't replaceargon2
withBun.password
quite yetand it seems there's some issue tracking regarding Bun.password options parity
#9074
#9654
To reiterate
Are there any workaround to make Bun bundled
argon2
? Does using bun c compiler works? Is it dead end (nobun build --compile
for now)?Beta Was this translation helpful? Give feedback.
All reactions