function getSpecifierValue(s) {
  return (
    // These are regular import values and must be checked first
    s.imported?.value ||
    s.imported?.name ||
    s.orig?.value ||
    s.orig?.name ||
    s.local?.value ||
    s.local?.name ||
    // Re-export
    s.exported?.value ||
    s.exported?.name
  );
}
Intends to work for oxc, swc, and babel asts
@param {SwcNode} s