cancel
Showing results for 
Search instead for 
Did you mean: 

CryptoJS not working after enabling js bundling on production mode

CryptoJS not working after enabling js bundling on production mode

Hello,

I use this js plugin in my custom module https://github.com/brainfoolong/cryptojs-aes-php

 

It works fine in developer mode but when I switch to production mode and enable js bundling it doesn't work anymore

 

Here is the error in my console : CryptoJS is not defined

 

So, what is the best way to call this js in my requirejs-config to make it work after enabling js bundling?

 

Thanks for your help