Moving our discussion from here: https://twitter.com/singmajesty/status/1015319551578214403
So I’ve added a extraParams.hxml file under externs/air that contained:
should behave like other target defines and not be defined in macro context
And copied the sys folder from hxnodejs to be under externs/air
However, I’m still getting:
src/Main.hx:17: characters 8-19 : You cannot access the sys package while targeting flash (for sys.io.File)
bin/air/haxe/ApplicationMain.hx:272: characters 48-52 : referenced here
Build halted with errors.
I’m imagining that I’ve misunderstood where things need to be. I also put them in the air and flash folders under externs/air, but I didn’t see anything different come from that.