andyli / jQueryExternForHaxe

Unleash the full power of jQuery in Haxe.
http://lib.haxe.org/p/jQueryExtern
65 stars 12 forks source link

Warning: Should be used in initialization macros only: haxe.macro.Compiler.define #29

Closed zhaoterryy closed 5 years ago

zhaoterryy commented 5 years ago

Getting: Warning : Should be used in initialization macros only: haxe.macro.Compiler.define(jquery_ver, 30301) after updating to Haxe 4.0.0-rc.4.

It's referencing here: https://github.com/andyli/jQueryExternForHaxe/blob/b173d859f26517ec8edc685553a81b497c84e325/js/jquery/Config.hx#L55

andyli commented 5 years ago

Have just released jQueryExtern 3.2.1 with the fix.

If you don't wanna upgrade, you can add --macro js.jquery.Config.setVersion('3.4.1') (with any jQuery version number) to your hxml to avoid the warning.