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 3000 to 5000 chars before the "Hi" block to see any timers or effects in the same component!
  console.log(content.substring(idx - 5000, idx - 1500));
} else {
  console.log("Not found");
}
