function extractLastUpdatedTime()

in rollup.config.js [17:28]


function extractLastUpdatedTime(str) {
  const json = JSON.parse(str);
  const lastUpdatedDate = new Date();
  lastUpdatedDate.setTime(Date.parse(json.lastUpdate));

  return lastUpdatedDate.toLocaleDateString("en-US", {
    weekday: "long",
    year: "numeric",
    month: "long",
    day: "numeric",
  });
}