function expandSubpathVariants(subpath: string): Array<string> {
  return [subpath, subpath + '.js', subpath + '.json'];
}
Get the expanded variants for a given subpath to try against mappings in
`package.json`. This is unique to "main" and the "browser" spec.