brix / crypto-js

JavaScript library of crypto standards.
Other
15.71k stars 2.38k forks source link

Error using Crypto-Js library in Rollupjs project with ES6 Imports #280

Open luenmuvel opened 4 years ago

luenmuvel commented 4 years ago

I have installed the crypto-js library to use it from the browser in a project created with Rollup. I can't use the library. In my JS code I have:

import hmacSHA512 from 'crypto-js/hmac-sha512';
import Base64 from 'crypto-js/enc-base64';

I get an error: image

entronad commented 4 years ago

Maybe you can try crypto-es, it natively supports ES6 imports .