Repository navigation
docs: update framework bundler import examples and streaming guides - #792
Conversation
📦 Bundle Size✅ No notable changes All bundles (12)
⚡ Performance (directional)✅ No significant change (within CI noise) All benchmarks (6)
Baseline: main @ 9b38328 · 2026-06-29 · gzipped is the headline size metric · perf is directional (shared-runner, gated) |
📝 WalkthroughWalkthroughUpdates documentation and example Vite configs to align with a new bundler plugin API: replaces default Bundler API docs and examples
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
docs/0.vue/head/guides/1.core-concepts/5.streaming.md (1)
41-41: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚖️ Poor tradeoffOptional: align the import path with the Vite snippet for consistency.
The Vite example (Line 29) imports from
@unhead/vue/vite, while this webpack guidance imports from@unhead/vue/bundler. Both export the namedUnheadfactory and work, but using the unified@unhead/vue/bundlerentry in both spots (it dispatches to all bundlers) would read more consistently for users.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@docs/0.vue/head/guides/1.core-concepts/5.streaming.md` at line 41, The webpack streaming example in the guide uses a different import entry than the Vite snippet, which makes the documentation inconsistent. Update the webpack guidance to use the same unified `Unhead` import path as the other bundler example, and keep the `Unhead({ streaming: true }).webpack()` usage unchanged so the `Unhead` factory is referenced consistently across the streaming docs.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@docs/0.vue/head/guides/1.core-concepts/5.streaming.md`:
- Line 41: The webpack streaming example in the guide uses a different import
entry than the Vite snippet, which makes the documentation inconsistent. Update
the webpack guidance to use the same unified `Unhead` import path as the other
bundler example, and keep the `Unhead({ streaming: true }).webpack()` usage
unchanged so the `Unhead` factory is referenced consistently across the
streaming docs.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: b6d1d2f5-083e-4910-b302-0debc60a1b48
📒 Files selected for processing (11)
docs/0.react/head/guides/1.core-concepts/5.streaming.mddocs/0.solid-js/head/guides/1.core-concepts/5.streaming.mddocs/0.svelte/head/guides/1.core-concepts/5.streaming.mddocs/0.vue/head/guides/1.core-concepts/5.streaming.mddocs/6.migration-guide/1.v3.mddocs/head/1.guides/build-plugins/0.overview.mdexamples/vite-ssr-react-streaming/vite.config.tsexamples/vite-ssr-react-ts/vite.config.tsexamples/vite-ssr-solidjs-streaming/vite.config.tsexamples/vite-ssr-svelte-streaming/vite.config.tsexamples/vite-ssr-vue/vite.config.ts
🔗 Related
Depends on #785 (the vite-ssr-vue example imports
@unhead/schema-org/imports).❓ Type of change
📚 Description
Updates the examples and build-plugin / streaming guides to the named
Unheadplugin import and the@unhead/*/bundlerframework entry (for exampleUnhead().webpack()), replacing the old default import and the removed per-bundler subpaths. Thevite-ssr-vueexample also adopts@unhead/schema-org/imports.Summary by CodeRabbit
Documentation
Examples