Try to support JavaScriptShimRequire and hrefTypes other than 'moduleName'.