The require cache is apparently only available on global.require.cache
.
Clearing that cache manually made it work for me.
for(module in global.require.cache){ if(global.require.cache.hasOwnProperty(module)){ delete global.require.cache[module]; }}location.reload()
Neither the gui.APP.clearCache()
nor the gui.Window.get().reloadIgnoringCache()
had any effect for me.