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

// Find all occurrences of "<table" or "table" element creation
let idx = 0;
while (true) {
  idx = content.indexOf('a.jsxs("table"', idx);
  if (idx === -1) {
    idx = content.indexOf('a.jsx("table"', idx);
  }
  if (idx === -1) break;
  console.log(`Found table at index ${idx}:`);
  // Print some characters before to see the wrapper
  console.log(content.substring(idx - 350, idx + 100));
  console.log('==================================================');
  idx += 15;
}
