Modular .wasp files?

Hi, is it possible to have modular .wasp files? Or is main.wasp the only possible option? I imagine main.wasp growing fairly big as my app grows, and being able to split main.wasp into multiple .wasp files (potentially with imports) would have been extremely useful.
10 Replies
Vinny (@Wasp)
Vinny (@Wasp)7mo ago
This is coming soon! In the next release perhaps. Is that right, @martinsos ?
martinsos
martinsos7mo ago
Ha almost :D. The next release will put some groundwork for it, but then the release after it might actually have them! So certainly in plan, and we have a good idea how to do it, just not there yet. And once they come, it might be more than just modular files, but modular pieces of whole Wasp apps, that is something I am super exctied about.
Samadhi
Samadhi7mo ago
Awesome, thank you guys for all the amazing work you've been doing on Wasp! It's been a game changer for me. I've used pretty much every major web technology over the last 7 years. IMO Wasp is as game-changing for me as React has been many years back. Wasp's simplicity, and how well the DSL captures most full-stack engineering tasks is pure genius. I believe Wasp will become the #1 web technology in just a couple years. It has everything that most web devs are looking for.
martinsos
martinsos7mo ago
Oh wow thanks @Samadhi that means a lot! There is still much more that we want to do, both regarding improving current features and also adding much more to it. If you will have any specific feedback, regarding which features you find most useful and what you find missing or lacking, pls do let us know here on Discord, it helps us prioritize what to work on next!
ldeavila
ldeavila4mo ago
+1 to having modular .wasp file support
MEE6
MEE64mo ago
Wohooo @ldeavila, you just became a Waspeteer level 1!
Filip
Filip3mo ago
@HobartLivingston Thanks for opening the discussion! Your idea is pretty close to what we are planning to do (that's always great to see). I'm not sure whether we're using those discussions though or are your thoughts better placed in an issue. @martinsos What do we do here?
martinsos
martinsos3mo ago
Discussions are a bit tricky yeah - best to add this to a relevant issue!