benmerckx / genes

Generates split ES6 modules and Typescript definitions from Haxe modules.
44 stars 8 forks source link

Look into 9280 #20

Closed benmerckx closed 1 year ago

benmerckx commented 4 years ago

Generate let and add -D js-es=6 after this is released: https://github.com/HaxeFoundation/haxe/pull/9280

Antriel commented 2 years ago

I actually got tripped by this just now, as I had -D js-es=6, and it worked so far, but only by a happy coincidence. Since the generated files use var instead of let, I had a situation where a variable was unintentionally shadowed.

Not a critical issue though, as I can just use ES5 and everything works.