Is openfl4 DCE full compatible

Getting this error using -final
my.js:17 Uncaught TypeError: Cannot read property ‘apply’ of undefined

JS output at 17 is
…Ja.start=function(){ca.initialize();var a=Ka.resolveClass(“com.stuff.my”);Q.field(a,“main”).apply(a,[]);…

This looks to be Openfl output and outside of my control?

Thanks for the report, I just fixed this on the repository. In the meantime, you should probably be able to fix it by adding @:keep to your main class, or by removing the static function main () and just having a new () instead for your entry class

Thank you. This did fix it for me. Great to know DCE is working