We probably want to allow people to specify the module name, currently is uses basename without ext, but this is conflictive e.g. moment.min.js -> define('moment.min')