Closed CxRes closed 4 years ago
I'm also hiting this regressions. Whereas, with your solution @CxRes, in my configuration (Gatsbyjs with Babel and a lot of other stuffs) I get :
Can't import the named export 'Crypto' from non EcmaScript module (only default export is available)
With no clues from where it comes.
@florent-andre I am hitting the same bug too - with Webpack (but not with Rollup)! Note that in this case for some reason your bundler/runner is looking to load the cjs version (and not esm version) of @peculiar/webcrypto.
At least with Webpack, if I load @peculiar/webcrypto directly from my main, it loads the esm version but if I load isomorphic-webcrypto then it attempts to load the cjs version. Very annoying!
Thanks for the heads up. I'll publish a new version shortly.
Fixed in 2.3.6. Thanks again
This is a regression introduced by #28. In line with
index.js
, the code inindex.mjs
needs to be changed to: