A Haxe port of the ActionScript 3 SwiftSuspenders IOC library with efficient macro enhanced type reflection. Supports AVM1, AVM2, JavaScript, Neko and C++.
I have fixed that by moving the onGenerate registration to extraParams.hxml (source). That works well but not optimal, because onGenerate re-processes all types every time. So I further improved it to use tink_syntaxhub, making it process only changed/uncached types. And the source is here.
Please let me know which solution you prefer and I will make the PR correspondingly.
Because the
addMeta
method is registered as a build macro ofInjector
, meaning that ifInjector
is cached by the compilation server and no need to be bulit again, minject will fail at runtime because the required metas are absent. (https://github.com/ufront/ufront-mvc/issues/53, https://github.com/HaxeFoundation/haxe/issues/4892)I have fixed that by moving the
onGenerate
registration toextraParams.hxml
(source). That works well but not optimal, becauseonGenerate
re-processes all types every time. So I further improved it to use tink_syntaxhub, making it process only changed/uncached types. And the source is here.Please let me know which solution you prefer and I will make the PR correspondingly.