require('xyz.js')
do if xyz.js is not a CommonJS module.require()
then yes.require()
call. However if it's using for example the global object for its exports, you can access it after you require the file.xyz.js:
window.myExport = "hello";
main.js:
var xyz = require("xyz");
xyz.myExport; // undefined
window.myExport; // "hello"