I just came to a similar problem today got the solution from this page
https://helpx.adobe.com/au/experience-manager/kb/how-to-change-the-minification-engine-for-client-libraries-in-AEM.html.
You can add the following property to your client library folder and
won't be minified.jsProcessor: ["default:none", "min:none"]