aktos-io/scada.js

Keep Object.constructor.name

ceremcem opened this issue · 2 comments

Any code may rely on obj.constructor.name which is replaced by the letter t in --production build:

mishoo/UglifyJS#1429

So what's the fix? which rules should I give to specifically not replace *.constructor with t ?

Are you using ScadaJS or you have a separate project? If you use ScadaJS, you don't need to do anything, it should be already fixed. If you have a separate project, it's better to provide some more information, such as your build script and/or the test case.