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

// Find r4 definition or where saasTenants is rendered in the code
const idx = content.indexOf('saasTenants');
let matchIdx = 0;
while ((matchIdx = content.indexOf('saasTenants', matchIdx)) !== -1) {
  console.log(`\n--- Match at ${matchIdx} ---`);
  console.log(content.substring(matchIdx - 300, matchIdx + 400));
  matchIdx += 'saasTenants'.length;
}
