<!-- Thanks for submitting an issue to AssemblyScript! Please take a moment to read the contributing guidelines linked below to get off to a good start 🙂 --> It seems there is no way to pass args to control the behaviors of transform hooks. Has any plan to support it ? Or any other instead way to do it.
Activity
dcodeIO commentedon Feb 19, 2021
If there is a need for it, perhaps we can add it. Maybe something along the lines of
--transform path/to/transform?arg1=1&arg2=2?yjhmelody commentedon Feb 22, 2021
Further, it may be better if we can get some args passed to asc.
jtenner commentedon Feb 22, 2021
Is it possible to obtain what
--useflags were passed to the compiler? :)yjhmelody commentedon Feb 22, 2021
It's a good idea. And
transform hookalso need to know asc's args.willemneal commentedon Mar 17, 2021
Yeah I think that passing the CLI args to the transform is all you need. Since you'd get the extra args unknown to the normal CLI.
yjhmelody commentedon Jul 7, 2022
@dcodeIO Do you have some ideas about this features?