buildImportMap(imports = []) {
    return imports.reduce((acc, specifier) => {
      const filepath = this.resolveSpecifier(specifier)
      if (filepath) {
        acc[specifier] = filepath
      }
      return acc
    }, /** @type {LavamoatModuleRecord['importMap']} */ ({}))
  }
Builds an import map for a {@link LavamoatModuleRecord} from a list of
import specifiers.

These specifiers can come from either `StaticModuleType` (as found in
`Sources`) or `ModuleDescriptor` objects.

Relative-path specifiers do not need an import map entry.

@param {string[]} imports
@returns {LavamoatModuleRecord['importMap']}