Incompatibility with stackblitz
pi0 opened this issue · comments
Hi
Moving the report from unjs/h3#337 to here to track and share with the stackblitz team since it is closer to the source.
Basically, this package is broken on Stackblitz.com due to crypto incompatibilities with subtle.importKey
not being supported (there might be more issues once this is fixed)
Reproduction: https://stackblitz.com/edit/stackblitz-starters-coskra
(you can use node h3.mjs
, node crypto.mjs
and node iron-webcrypto.mjs
for reproductions)
I don't think it will work properly even after that. Almost whole webcrypto implementation is non-standard on stackblitz? -- https://stackblitz.com/edit/node-opczp3?file=index.js,with-polyfill.js,out.log
Also, even the polyfill doesn't work properly for all cases (missing node APIs?). But should work with the default options 👀
Probably should consider using the polyfill at uncrypto level to unblock h3?
Hi @brc-dd. FYI, stackblitz team almost prepared the missing crypto utils to get iron-webcrypto working out of the box 🚀
Original example seems to work fine now 🚀