Can you stop certain scripts from being compiled during build?

I have some scripts I wrote that I use for designing game levels. They will not compile at build time, as they use UnityEditor. I understand that, and I am fine with that. What I would like to be able to do is to his build and run and have those scripts skipped in the build, as they are only needed for development, not for the actual runtime. Is there any way to accomplish this?

Platform dependent compilation.

#if UNITY_EDITOR
using UnityEditor;
class MyEditor : Editor
{

}
#endif