Is “html5” released by “openfl” “js es5”?
I just looked at the ‘html5’ exported by ‘openfl’,
Did you find that the exported file is “JS ES5”? Wasn’t ‘JS ES5’ already phased out? Isn’t it the era of “JS ES6” now?
Is “html5” released by “openfl” “js es5”?
I just looked at the ‘html5’ exported by ‘openfl’,
Did you find that the exported file is “JS ES5”? Wasn’t ‘JS ES5’ already phased out? Isn’t it the era of “JS ES6” now?
You should be able to tell the Haxe compiler to output ES6/ES2015 JavaScript syntax by adding the following to your project.xml file.
<haxedef name="js-es" value="6"/>
Thanks
Do I need to add ‘if=html5’?
<haxedef name="js-es" value="6" if="html5"/>
Do not set ‘if=html5’
Will it affect other goals? For example, ‘window’
I found this option, it’s a bit concise
This define should not affect other targets. However, it’s probably a good idea to use if="html5", just to be safe.