code: function requireExtended(name) {
    var module = require(name);
    if (module && module.__esModule === true && typeof module.default !== 'undefined') {
      if (typeof module.__module !== 'undefined') {
        // if __module is specified as a named export, add it to the default export
        _.defaults(module.default, {__module: module.__module})
      }
      return module.default;
    }
    return module;
  }
docs: Extended require to support loading Babel6 transpiled ES6 modules, which have their default export under the
  "default" key