Doesnt WITH_EDITOR work in Build.cs

this might be a noob question but i put WITH_EDITOR in build.cs and it seems like doesnt work in there…

#if WITH_EDITOR
            PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "UnrealEd" });
        #else
            PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore"});
        #endif

when i dont use WITH_EDITOR, it works just fine.
does it realy matter if dont use WITH_EDITOR test in final standalone game, or should i realy use it…

WITH_EDITOR only works in our C++ code, not the C# code used by our build files.

If you want to add editor dependencies, then you’ll need to make an editor module for your project. More information on that can be found here: What is the proper method for extending the Editor Engine? - C++ - Epic Developer Community Forums