blackberry-webworks/BBX-Framework — comment on commit 0182d037c0e8f98fdcb77a20b476ba15a458ca80
File: lib/public/builder.js line 7
By gtanner:

No, you can still do all this in an aspected require method like the example I sent you. That code only runs in the browser and can update the paths as needed to require via the local URI's

also thinking you can problem get around lint by doing:

return _r.modules[id] || _r.load(id + ".js") || _r.require(id);

which should work fine since the first call will return if it exists, second call returns undefined but will load the module and third call will return it.
This is untested by the way ;)