How to make the Magenest Sage Pay module compatible with the Magento's JavaScript minification mode?

Pasted%20File%20at%20October%2025%2C%202018%2011_03%20AM

Locate the: app/code/Magenest/SagePay/view/frontend/requirejs-config.js.
Replace the block:

magenest_sagepay_pi_test: 'https://pi-test.sagepay.com/api/v1/js/sagepay.js',
magenest_sagepay_pi_live: 'https://pi-live.sagepay.com/api/v1/js/sagepay.js'

with the following one:

magenest_sagepay_pi_test: 'https://pi-test.sagepay.com/api/v1/js/sagepay.js?v=mage2pro',
magenest_sagepay_pi_live: 'https://pi-live.sagepay.com/api/v1/js/sagepay.js?v=mage2pro'