vibetunnel/web/public/tests/debug-export.html
Mario Zechner 7b6ebad8be Increase XTerm scrollback buffer to 1M lines by default
- Add configurable scrollback parameter to Renderer constructor
- Default to 1,000,000 lines (up from 1,000) for full session history
- Users can now scroll through entire terminal session history
- Fix renderer-entry.ts import path (remove .js extension)

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-16 10:38:19 +02:00

44 lines
No EOL
1.6 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>Debug Export</title>
</head>
<body>
<h1>Debug Export Test</h1>
<div id="result"></div>
<script type="module">
console.log('Starting import test...');
try {
// First, let's see what the bundle actually exports
const bundleResponse = await fetch('../bundle/renderer.js');
const bundleText = await bundleResponse.text();
// Look for export statement
const exportMatch = bundleText.match(/export\s*\{[^}]*\}/);
console.log('Found export statement:', exportMatch ? exportMatch[0] : 'None found');
// Now try to import
console.log('Attempting dynamic import...');
const module = await import('../bundle/renderer.js');
console.log('Import successful!', module);
console.log('Available exports:', Object.keys(module));
document.getElementById('result').innerHTML = `
<p>✅ Import successful!</p>
<p>Export statement: <code>${exportMatch ? exportMatch[0] : 'None found'}</code></p>
<p>Available exports: ${Object.keys(module).join(', ')}</p>
<p>Renderer type: ${typeof module.Renderer}</p>
`;
} catch (error) {
console.error('Error:', error);
document.getElementById('result').innerHTML = `
<p>❌ Error: ${error.message}</p>
<p>Stack: <pre>${error.stack}</pre></p>
`;
}
</script>
</body>
</html>