src/language-html/utils/index.js/_inferScriptParser
function _inferScriptParser(node) {
  const { type, lang } = node.attrMap;
  if (
    type === "module" ||
    type === "text/javascript" ||
    type === "text/babel" ||
    type === "application/javascript" ||
    lang === "jsx"
  ) {
    return "babel";
  }

  if (type === "application/x-typescript" || lang === "ts" || lang === "tsx") {
    return "typescript";
  }

  if (type === "text/markdown") {
    return "markdown";
  }

  if (type === "text/html") {
    return "html";
  }

  if (
    (type && (type.endsWith("json") || type.endsWith("importmap"))) ||
    type === "speculationrules"
  ) {
    return "json";
  }

  if (type === "text/x-handlebars-template") {
    return "glimmer";
  }
}