export.js: Export in all CommonJS environments

Closes #521
Why the fallback to a noop function? Doesn't that just cause the whole thing to do nothing, since the calls to `load` won't doing anything below? If that's correct, let's throw an error instead, to make sure that we don't have a "do nothing silent failure".