When targeting the browser (e.g. not node and not webpack), Modular will inject a `require` stub. This stub should not override a `require` function in scope. Issue appeared in https://github.com/HaxeFoundation/hxnodejs/issues/121 where the NodeJS target was not detected.