rojo icon indicating copy to clipboard operation
rojo copied to clipboard

Idea: Transformers

Open Sebastian2852 opened this issue 4 months ago • 1 comments

I just want to preface this with saying that this is just an idea and I dont actually expect this to be a thing but I wanted to bring it up as an idea.

Could adding a feature like Transformers to Rojo be beneficial. It would be a similar system to Typescript where you can install transformers from some sort of pacakge manager. Then once you add it to your config it runs your Typescript AST through the transformer to modifiy it by adding, changing or removing nodes. I wont go into details here but more info can be found by a simple google search. My thoughts are what if a system like this was introduced to Rojo where in your project you can define what transformers you want to use and then when syncing or building rojo will first run your Luau files through the transformers and use the results of those.

Sebastian2852 avatar Aug 10 '25 23:08 Sebastian2852

This is something we've discussed before as a sort of 'plugins' feature. I've put it on the backburner because it complicates things a fair bit, but this was part of Rojo's original vision (you can see that from the mention of MoonScript in the README).

Dekkonot avatar Aug 13 '25 22:08 Dekkonot