Closed bitcrshr closed 2 years ago
Seems like the svelte-kit vercel adapter only builds a cjs bundle. I'll probably remove the polyfill which uses top-level await in zencrypt and require the user to polyfill the global webcrypto, which is already done by svelte-kit. Will try to get a new version out soonish.
Nice, thank you! I actually had success with just changing the await import(...)
to import(...).then(...)
, and making a patch with patch-package
. Works beautifully now!
It appears that although everything works fine in
dev
andpreview
, the build fails in Vercel. This may very well be an issue for theadapter-vercel
folks, but I figured I would check in here. Looks like it's an issue with thezencrypt
dependency. Here's the error I get:Any tips here?