It entirely depends on what module format the file is being detected as.
If the file is being treated as a CommonJS or AMD file, then the `require` function will be provided accordingly.
If the file is being treated as a global or ES6 module file (or System.register), then the global `require` function is left unchanged.
Typically in NodeJS environments, `require` is locally-scoped and not a global. I haven't checked Node Webkit recently, but I assume it defines the `window.require` to be the CommonJS require then?