async function loadModule(modulePath) {
  const module = await import(modulePath);
  return module?.default || module;
}
@static
Attempt to load an adapter or fallback to the default.
@param {Adapter} adapter an adapter
@param {Adapter} defaultAdapter the default adapter to load
@param {any} options options to pass to the contstructor
@returns {Object} the loaded adapter