Correct package names in documentation:
- Use `react-server-dom-bun` instead of `react-server-dom-webpack`
- Update install command to match actual requirements from bake.zig:344
- Fix serverRuntimeImportSource to use correct Bun-specific package
Based on actual implementation in:
- /workspace/bun/src/bake.zig:234 (server_runtime_import)
- /workspace/bun/src/bake.zig:344 (react_install_command)
- /workspace/bun/test/bake/bake-harness.ts (test install commands)
The index.ts file is marked as "unused by Bun itself" and contains
outdated references.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Major additions based on deep code analysis:
**Framework-Agnostic Architecture:**
- Document that React is just a built-in example, not the only option
- Add complete Svelte framework example showing custom plugins
- Show multi-framework apps with different router types
- Explain plugin system for custom file transformations
**Advanced CSS Hot Module Reloading:**
- Document sophisticated CSS HMR with MutationObserver tracking
- Framework-aware CSS management during client navigation
- CSSStyleSheet API for instant style replacement
- CSS chunking, routing-based splitting, and optimization
**Static Site Generation with Dynamic Params:**
- Document `getParams` export requirement for dynamic routes
- Show streaming parameter generation with async iterators
- Explain exhaustive vs non-exhaustive parameter generation
- Add Next.js `getStaticPaths` compatibility examples
**Production Build Features:**
- Document that `bun build --app` creates static builds by default
- Explain `import.meta.env.STATIC` environment variable
- Show complete build output structure with .rsc files
- Document RSC payload generation for seamless navigation
**Advanced Development Features:**
- HMR with file watching and incremental rebuilds
- Error overlay with stack traces and source maps
- Custom hot reload hooks for framework authors
- Environment variables for different build modes
**Complete API Reference:**
- All Framework configuration options
- RouteMetadata interface documentation
- Special module imports (bun:bake/server, bun:bake/client)
- Custom router function examples
Based on actual implementation analysis of:
- /workspace/bun/src/bake/production.zig (build system)
- /workspace/bun/src/bake/client/css-reloader.ts (CSS HMR)
- /workspace/bun/test/bake/fixtures/svelte-component-islands/ (framework examples)
- /workspace/bun/src/bake/bun-framework-react/ (React integration)
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Update documentation to correctly refer to this as the "Bun Rendering API"
rather than "Bake framework". This better reflects that it's a rendering
system/API rather than a full framework.
Changes:
- Rename title from "Bake: Full-Stack Web Framework" to "Bun Rendering API"
- Replace "Bake" references with "Bun Rendering API"
- Replace "framework" with "rendering system/API" in descriptions
- Update variable names from "customFramework" to "customConfig"
- Clarify this is an experimental rendering API
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Add detailed documentation for Bake, Bun's experimental full-stack web
framework with React Server Components support. Documents:
- Configuration via bun.app.ts files
- Built-in React framework integration
- File-based routing with Next.js conventions
- React Server Components with client/server separation
- Static site generation capabilities
- Hot module reloading and development features
- Custom framework configuration options
- CLI commands for development and production builds
Based on actual implementation in src/bake/ including server.tsx,
client.tsx, and type definitions from bake.d.ts.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-authored-by: Claude Bot <claude-bot@bun.sh>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Claude Bot <claude-bot@bun.sh>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>