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

const targetStr = 'C.useEffect(()=>{},[r]);';
let idx = 0;
let count = 0;
while ((idx = content.indexOf(targetStr, idx)) !== -1) {
  count++;
  console.log(`Found ${targetStr} at ${idx}`);
  idx += targetStr.length;
}
console.log("Total occurrences:", count);
