entronad / crypto-es

A cryptography algorithms library
Other
275 stars 31 forks source link

Unable to ng-build-prod #24

Closed deoraashish closed 1 year ago

deoraashish commented 2 years ago

Hello,

I've used this package in Angular 7 codebase and it is working fine when I run the project.

However, when I try to ng --build the code, I get the following error:

ERROR in modules-login-login-module-ngfactory.0e87ddf2fd23f5d113c2.js from Terser Unexpected token: punc ()) [./node_modules/crypto-es/lib/evpkdf.js:41,0][modules-login-login-module-ngfactory.0e87ddf2fd23f5d113c2.js:1318,4]

In the above error message, login_module is the component in which I've implemented the logic.

I've updated the compiler options as suggested, but still the error doesn't go.

Please advise.