Writing Web Assembly
Code Splitting
When writing WebAssembly modules, it is important to consider code splitting for readability and maintainability. We try to split binding and logic into separate files wherever possible. That keeps the codebase organized and makes it easier to navigate. For example, in the ECS package, the binding logic is in.cpp files while the core logic resides in .hpp files. That separation lets developers focus on either the bindings or the logic without having to work through both at the same time.