Repository navigation
fix(schema-org): missing subpath exports and vue import cycle - #785
Conversation
📝 WalkthroughWalkthroughSchema-org adds public ChangesSchema Org public entrypoints and runtime wiring
Schema Org minify default
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ 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 |
📦 Bundle Size✅ No notable changes All bundles (12)
⚡ Performance (directional)🟢 1 faster
All benchmarks (6)
Baseline: main @ 00c5340 · 2026-06-29 · gzipped is the headline size metric · perf is directional (shared-runner, gated) |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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.
Inline comments:
In `@packages/schema-org/test/ssr/dupes.test.ts`:
- Around line 7-10: The test cleanup in dupe.spec logic should restore NODE_ENV
to its prior state instead of always assigning it back, because assigning
process.env.NODE_ENV from originalNodeEnv can leave a lingering own property
when it was originally unset. Update the afterEach cleanup near originalNodeEnv
to delete process.env.NODE_ENV when originalNodeEnv was undefined, and only
assign it when it had a real value.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 3776b719-0887-47b0-ad97-d6a3563fd744
📒 Files selected for processing (12)
packages/schema-org/build.config.tspackages/schema-org/package.jsonpackages/schema-org/src/core/graph.tspackages/schema-org/src/plugin.tspackages/schema-org/src/vue/index.tspackages/schema-org/src/vue/runtime/components.tspackages/schema-org/src/vue/runtime/composables.tspackages/schema-org/test/ssr/dupes.test.tspackages/schema-org/test/vue/auto-imports.test.tspackages/schema-org/vitest.config.tstest/exports/schema-org.yamltsconfig.json
❓ Type of change
📚 Description
Fixes two schema-org package shape issues:
@unhead/schema-org/importsand@unhead/schema-org/vue/metasubpath exports so auto-import metadata and the Vue meta bridge can be imported without pulling the full Vue entry.src/vue/indexand the runtime components/composables by importing composables directly from the component module.Export snapshot (
test/exports/schema-org.yaml) and ATTW coverage are updated for the new public subpaths.