How to exclude files from being compiled ?

Are you putting your editor code directly into your game module, rather than making another module for your editor specific code as outlined here?