This allows to disable modules based on the environment, in particular `env[tools]` which tells us if we are building the editor or not.
Webassembly is client-only for obvious reasons. Other platforms support both client and server using libwebsockets.