This is the answer. Emphasis on REBUILD, not just recompile. Visual Studio will not detect that it needs to rebuild after changing the module type. Exact syntax:
“Modules”:
{
“Name”: “CustomEditorOnlyModule”,
“Type”: “UncookedOnly”,
…
},
…
… = whatever else was already there.