mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-05 11:15:57 +00:00
- 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>
44 lines
No EOL
1.6 KiB
HTML
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> |