See the section on Advanced minification from the scripting manual, which is written for people writing code in Construct itself, but also applies to addons. The main thing to do is make sure property/method names are consistently referred to with the same syntax, and ensure any external API calls use strings so they are not minified.