W
Wasp7d ago
NEROX

Wasp TypeScript configuration - Split Wasp file

I remember having seen in some thread that with the Typescript config you can split the main.wasp into several. I can't find it, Give the COMPLETE steps 1 by 1.
3 Replies
kapa.ai
kapa.ai7d ago
Hi @NEROX. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- I need to clarify something important: based on the knowledge sources provided, it's currently not possible to split the main.wasp file into multiple files in Wasp. The ability to split the main.wasp file is a planned feature for future versions, but it's not yet implemented. This is confirmed by multiple Discord support threads where community members and contributors have discussed this limitation: 1. In one thread, a community member explicitly states: "YES this is coming in a future update but isn't possible at the moment" Discord support thread 2. Another contributor mentions: "this is one of the features we'll be tackling next" and explains that while it sounds straightforward, it also opens questions about modules, imports, etc. Discord support thread 3. There's an open GitHub issue specifically for this feature: "Support splitting Wasp source code into multiple files (Wasp modules)" GitHub Issue #315 Several community members have expressed the need for this feature as main.wasp files can grow quite large and become difficult to maintain, but it's still in development and not currently available. I apologize that I cannot provide the complete steps you're looking for, as this functionality doesn't exist yet in the current version of Wasp. GitHub Issue: Support splitting Wasp source code into multiple files ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @NEROX, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
genyus
genyus6d ago
Gist
Wasp-lang: An example of splitting/organizing main wasp file (OpenS...
Wasp-lang: An example of splitting/organizing main wasp file (OpenSaaS) into different sections - actions.wasp.ts
NEROX
NEROXOP6d ago
Oh yes, thank you Genyus!

Did you find this page helpful?