-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
Because the addMeta method is registered as a build macro of Injector, meaning that if Injector is cached by the compilation server and no need to be bulit again, minject will fail at runtime because the required metas are absent. (ufront/ufront-mvc#53, HaxeFoundation/haxe#4892)
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.
Metadata
Metadata
Assignees
Labels
No labels