We were checking the JS output our project generates the other day and noticed that there is a lot of unwanted/unused code being generated even though DCE = full is used.
Things we encounter:
The Haxe Error which is never used in our (generated) code
Std.String even though this is also not used in our (generated) code
haxe.io.FPHelper
All classes get a name = true flag added
What would be the most suitable way to avoid this kind of output. Adding it all together results in quite a lot of js code…
These elements are added based on code features, so there may be an error but they are needed as soon as you use a little bit of Reflection (and something else for the FPHelper).