simplify tries to check if it is running in a browser by attempting to
check for window.require. But ccloader/js/normalize.js ensures that
window.require always exists, so the check always fails.
As a replacement, check that 'nw.gui' can be loaded.
Btw, alternatively the presence of the nw object can be checked. require('nw.gui') is the old method of accessing that object (as stated by the nwjs docs, don't remember where).
simplify tries to check if it is running in a browser by attempting to check for window.require. But ccloader/js/normalize.js ensures that window.require always exists, so the check always fails.
As a replacement, check that 'nw.gui' can be loaded.