assemblyscript
assemblyscript copied to clipboard
Can `--transform` support to pass args ?
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.
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
?
Further, it may be better if we can get some args passed to asc.
Is it possible to obtain what --use
flags were passed to the compiler? :)
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
?
It's a good idea. And transform hook
also need to know asc's args.
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.
@dcodeIO Do you have some ideas about this features?