const fs = require('fs');
const content = fs.readFileSync('dist/assets/index-D9sWWWv_.js', 'utf8');

const target = "const Hi=tr.find";
const idx = content.indexOf(target);
if (idx !== -1) {
  // Let's print out 3500 chars BEFORE the "Hi" block to see the useEffect hooks or where the state changes
  console.log(content.substring(idx - 3500, idx));
} else {
  console.log("Not found");
}
