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

const target = 'useEffect';
let idx = 0;
while ((idx = content.indexOf(target, idx)) !== -1) {
  const windowStr = content.substring(idx, idx + 800);
  if (windowStr.includes('sr') && windowStr.includes('Is(')) {
    console.log(`Found sr and Is in useEffect at index ${idx}:`);
    console.log(windowStr);
  }
  idx += target.length;
}
