Update build.js
modify define call for improved compatibility with requirejs.
from http://requirejs.org/docs/api.html#modulename
These are normally generated by the optimization tool. You can explicitly name modules yourself, but it makes the modules less portable -- if you move the file to another directory you will need to change the name. It is normally best to avoid coding in a name for the module and just let the optimization tool burn in the module names.
We're using sortify for cryptpad, and the only way we can currently make it work with requirejs is to include require.config({ paths: { 'json.sortify': '/bower_components/json.sortify/dist/JSON.sortify' } });
I finally found some time to look at this.
Sorry, but I don't really understand how removing the module name would resolve your issue. Are you sure that's a fix?
If it is, we're probably gonna have to update the AMD mock in test-amd.html, but I also need to have a closer look at requireJS's internals in order to make sure nothing breaks.