passwordless-id / webauthn

Webauthn / passkeys helper library to make your life easier. Client side, server side and demo included.
https://webauthn.passwordless.id
MIT License
454 stars 53 forks source link

Does it has commonjs version? #47

Closed conanliuhuan closed 6 months ago

conanliuhuan commented 6 months ago

some old project use commonjs, if upgrade to esm would cost a lot of time. does it has commonjs version?

dagnelies commented 6 months ago

See #35

dagnelies commented 6 months ago

Basically, I'm not strictly against a commonJS version but I won't do it myself. I consider it to be old legacy that slowly fades away and as such I will not put effort into it. A well tested PR would be accepted though.

pranav-growthx commented 6 months ago

I dont see anything in your code that might cause issues with a commonjs build.

I managed to get a commonjs build just by adding a new tsconfig with compilerOptions.module set to commonjs, setting a different outDir and adding an exports block in package.json (and removing type: module in package.json)