Repository navigation
Conversation
* perf(bundler): unify AST transforms into one parse/walk pipeline TreeshakeServerComposables, UseSeoMetaTransform and MinifyTransform each ran their own oxc parseSync + oxc-walker walk + MagicString over the same modules, so a module matching all three code filters parsed three times per build. The new private createTransformPipeline runs all three concerns over a single parse, ScopeTracker walk, MagicString and sourcemap: - rolldown-first filtering: the unified plugin's transform.filter uses the union code regex and the shared JS/Vue id filter so rolldown/Vite skip the JS hook natively; cheap per-concern regexes re-gate phases inside the handler - phase order per call site is preserved: treeshake claims removed statement ranges first, and the seoMeta/minify phases skip any node inside a claimed range (previously guaranteed by plugin registration order) - per-target dispatch stays per transform call via resolveBuildConsumer; unknown targets retain server code, sharedDuringBuild stays on - overlapping edits from two phases are detected up front and throw one contextual error (file + offsets) with no partial output - parser failures return undefined (no transform), matching the previous MinifyTransform behavior - the treeshake provenance check accepts importPaths, defaulting to the seoMeta importPaths inside the unified pipeline The public factories (TreeshakeServerComposables, UseSeoMetaTransform, MinifyTransform) remain exported as thin single-concern adapters over the pipeline; Unhead()/createFrameworkPlugin() now register one plugin. Combined transform-positive module: 375 -> 745 ops/s (~2.0x); prefiltered unrelated module: 333k -> 539k ops/s (no regression). * perf(bundler): broaden static useSeoMeta lowering (#834) Replace the string-only nested-object decoder with a safe recursive AST value decoder (string/number/boolean/null literals, unary +/- on numeric literals, expression-free template literals, arrays and plain objects with static keys; everything else returns a bail sentinel). Nested robots-style objects with numbers, negative numbers and booleans now compile. Match runtime `unpackMeta` exactly for the lowered output: - replicate `sanitizeObject` (top-level entries stringifying to 'false' are dropped before packing) - render structural expansions (media objects/arrays, array values) before scalar/packed props, mirroring `[...extras, ...meta]` - hoist `url`/`secureUrl` first inside media object expansions - bail arrayable meta keys (themeColor, ...) whose objects route through `handleObjectEntry` at runtime - emit `'http-equiv'` quoted (was previously invalid JS output) Add a per-prop residual fallback: when a value-level failure occurs, the unsupported tail is kept on the original composable adjacent to the lowered call, but only when provably render-identical (statement position, no options arg, no title after the failure point, disjoint resolved meta names, and residual props primitives-routed unless nothing was lowered). Verified by a runtime-vs-compiled equivalence corpus (37 fixtures rendered through the real unhead server runtime from both the original call and the transformed output) doubling as an eligibility floor so future changes can't silently narrow supported input.
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
Walkthrough
🚥 Pre-merge checks | ✅ 4 | ❌ 1
Finishing Touches
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. |
📦 Bundle Size✅ No notable changes · 🆕 2 new bundles tracked All bundles (16)
📦 Runtime Dependencies✅ No runtime dependency changes All packages (10)
Skipped optional dependencies (18)
Production dependencies only. Peer dependencies and Unhead workspace packages are excluded. Skipped optional dependencies are unavailable on the CI platform. ⚡ Performance (directional)
All benchmarks (29)
🧪 Experimental sealed precompile: client and server (same commit)The same static product metadata is built independently for
Stricter profile bundle detail
Phase detail
Server raw: 15,080 B → 4,115 B · Brotli: 5,251 B → 1,145 B · CPU RME: ±2.6% / ±0.5% Client raw: 20,907 B → 6,384 B · Brotli: 7,309 B → 2,021 B · CPU RME: ±1.1% / ±1.4% Baseline: main @ 8c82353 · 2026-10-31 · gzipped is the headline size metric · perf is directional (shared-runner, gated) |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
packages/unhead/test/unit/precompiledEntries.test.ts (1)
219-221: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winAssert the malformed marker’s resulting behavior, not only that rendering does not throw.
At Line 220,
revivePrecompiledTagsconverts a non-arraystylevalue into an emptyMap, so this test can pass while silently discarding{ filter: 1 }. Assert the rendered payload or explicitly verify the intended fallback/rejection behavior.🤖 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 `@packages/unhead/test/unit/precompiledEntries.test.ts` around lines 219 - 221, Update the test around invalidStyleObject and renderSSRHead to assert the resulting rendered payload, not merely that rendering completes. Verify the intended behavior when revivePrecompiledTags receives the non-array style value—either the expected fallback output or explicit rejection—and ensure the malformed { filter: 1 } value is not silently discarded.
🤖 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 `@packages/unhead/test/unit/precompiledEntries.test.ts`:
- Around line 219-221: Update the test around invalidStyleObject and
renderSSRHead to assert the resulting rendered payload, not merely that
rendering completes. Verify the intended behavior when revivePrecompiledTags
receives the non-array style value—either the expected fallback output or
explicit rejection—and ensure the malformed { filter: 1 } value is not silently
discarded.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 048cdaa1-fa83-4be9-bd0d-d03d342f5ec9
📒 Files selected for processing (2)
packages/unhead/src/utils/resolve.tspackages/unhead/test/unit/precompiledEntries.test.ts
🚧 Files skipped from review as they are similar to previous changes (1)
- packages/unhead/src/utils/resolve.ts
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (2)
packages/unhead/test/unit/precompiledEntries.test.ts (1)
41-47: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueRestore the prototype spy after this test.
vi.spyOnpatches the sharedPrecompiledHeadInputBase.prototype._r, and there's nomockRestore()/vi.restoreAllMocks()call, so the wrapper lingers on the shared prototype for the rest of the suite. Harmless today (spy calls through), but worth cleaning up to avoid surprises if a later test also inspects_rcall counts.♻️ Suggested cleanup
it('survives framework resolver walks without invoking the reviver', () => { const marker = precompile({ title: 'walked' }) as any const revive = vi.spyOn(Object.getPrototypeOf(marker), '_r') expect(marker.constructor).not.toBe(Object) expect(walkResolver(marker, (_key, value) => value)).toBe(marker) expect(revive).not.toHaveBeenCalled() + revive.mockRestore() })🤖 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 `@packages/unhead/test/unit/precompiledEntries.test.ts` around lines 41 - 47, Restore the prototype spy created for _r in the “survives framework resolver walks without invoking the reviver” test after its assertions, ensuring the shared PrecompiledHeadInputBase.prototype is not patched for subsequent tests.bench/precompile-gate.mjs (1)
31-49: 🚀 Performance & Scalability | 🔵 Trivial | ⚡ Quick winFragile
'toJSON'substring used as a leak-detection marker in two places. Both sites detect server-only precompile-carrier leakage by searching bundle text for the generic string'toJSON', which can legitimately appear in unrelated code (any class/library defining a customtoJSON), risking false-positive CI failures unrelated to actual leakage.
bench/precompile-gate.mjs#L31-L49: replace'toJSON'(and ideally'precompiledHeadInput') instrictMarkerswith a distinctive, low-collision sentinel unique to the precompile carrier (e.g. embed a rare literal like__UNHEAD_PRECOMPILED_CARRIER__inPrecompiledHeadInputBase/PrecompiledHeadInputand search for that).bench/bundle/vue-client-seo-plugin-build.config.ts#L53-L71: use the same distinctive sentinel instead ofcontents.toString().includes('toJSON')for the client-bundle leak check.🤖 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 `@bench/precompile-gate.mjs` around lines 31 - 49, Replace the generic toJSON and precompiledHeadInput leak markers with one distinctive sentinel literal embedded in PrecompiledHeadInputBase/PrecompiledHeadInput, then use that same sentinel in bench/precompile-gate.mjs lines 31-49 and bench/bundle/vue-client-seo-plugin-build.config.ts lines 53-71; update both checks to detect only this carrier-specific marker.
🤖 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/unhead/src/precompiled.ts`:
- Around line 6-23: Update toResolvableHead to skip class Set and style
Map/array normalization when tag.tag is templateParams, matching cloneTag’s
guard. Preserve the existing normalization for all other tags so literal
template parameter values, including flat style arrays, pass through unchanged.
---
Nitpick comments:
In `@bench/precompile-gate.mjs`:
- Around line 31-49: Replace the generic toJSON and precompiledHeadInput leak
markers with one distinctive sentinel literal embedded in
PrecompiledHeadInputBase/PrecompiledHeadInput, then use that same sentinel in
bench/precompile-gate.mjs lines 31-49 and
bench/bundle/vue-client-seo-plugin-build.config.ts lines 53-71; update both
checks to detect only this carrier-specific marker.
In `@packages/unhead/test/unit/precompiledEntries.test.ts`:
- Around line 41-47: Restore the prototype spy created for _r in the “survives
framework resolver walks without invoking the reviver” test after its
assertions, ensuring the shared PrecompiledHeadInputBase.prototype is not
patched for subsequent tests.
🪄 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: 9483063e-ab3d-4fa6-8c54-8533389728e5
📒 Files selected for processing (35)
.github/workflows/bundle-size.ymlbench/bundle/analyze.tsbench/bundle/bundle-report.tsbench/bundle/bundles.tsbench/bundle/precompile-report.tsbench/bundle/precompile-runtime-build.config.tsbench/bundle/report.tsbench/bundle/src/vue-server/precompile-runtime-off.tsbench/bundle/src/vue-server/precompile-runtime.tsbench/bundle/update.tsbench/bundle/vue-client-seo-plugin-build.config.tsbench/precompile-gate.mjsbench/precompile-perf-ci.mjsdocs/head/1.guides/build-plugins/0.overview.mdpackage.jsonpackages/bundler/README.mdpackages/bundler/src/unplugin/createTransformPipeline.tspackages/bundler/src/unplugin/types.tspackages/bundler/test/precompileTransform.test.tspackages/unhead/build.config.tspackages/unhead/package.jsonpackages/unhead/precompiled.build.config.tspackages/unhead/src/precompiled.tspackages/unhead/src/precompiled/carrier.tspackages/unhead/src/precompiled/resolve.tspackages/unhead/src/precompiled/server.tspackages/unhead/src/server/createHead.tspackages/unhead/src/server/renderSSRHead.tspackages/unhead/src/stream/unplugin.tspackages/unhead/src/utils/resolve.tspackages/unhead/test/streaming/unplugin.test.tspackages/unhead/test/unit/precompiledEntries.test.tspackages/unhead/test/unit/precompiledServer.test.tspackages/unhead/test/unit/server/defaultInitPrecomputed.test.tstest/exports/unhead.yaml
🚧 Files skipped from review as they are similar to previous changes (6)
- packages/bundler/src/unplugin/types.ts
- packages/bundler/README.md
- docs/head/1.guides/build-plugins/0.overview.md
- package.json
- packages/unhead/src/utils/resolve.ts
- packages/bundler/src/unplugin/createTransformPipeline.ts
|
@coderabbitai review |
✅ Action performedReview finished.
|
# Conflicts: # docs/head/1.guides/build-plugins/0.overview.md
|
@coderabbitai review |
✅ Action performedReview finished.
|
✅ Action performedReview finished.
|
There was a problem hiding this comment.
Actionable comments posted: 3
🧹 Nitpick comments (4)
packages/unhead/precompiled.build.config.ts (1)
8-11: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueStale comment: "emits one export" no longer matches the 7 entries.
The
entrieslist now emits multipleprecompiled/*outputs, so the "one export before the rest of the package exists" wording is misleading. Consider updating it to describe the actual first-pass intent.🤖 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 `@packages/unhead/precompiled.build.config.ts` around lines 8 - 11, Update the comment adjacent to failOnWarn in the precompiled build configuration to describe the first pass as emitting the initial precompiled entries before the rest of the package exists, rather than claiming it emits one export. Keep the existing build behavior unchanged.bench/bundle/precompile-server-snapshot-build.config.ts (1)
29-33: 🚀 Performance & Scalability | 🔵 Trivial | ⚡ Quick winAdd a content assertion mirroring the "unique" profile gate.
This
build:doneonly logs size — it never checks that snapshot mode actually stripped runtime resolution/normalization machinery (asprecompile-server-unique-build.config.tsdoes via itsmeta:description/new Mapcheck). Since snapshot is the most aggressively finalized profile, a regression here (e.g. a leakedresolveTags/dedupe path) could silently inflate the bundle without failing CI.♻️ Suggested addition
'build:done': () => { const file = path.resolve(__dirname, 'dist/precompile-runtime-snapshot/vue-server/precompile-snapshot.mjs') const contents = fs.readFileSync(file) + const output = contents.toString() + if (output.includes('resolveTags') || output.includes('new Map')) + throw new Error('Snapshot server bundle retained runtime resolution/duplicate-handling machinery.') console.log(`PRECOMPILE SERVER SNAPSHOT Size: ${contents.length} bytes, gzip: ${zlib.gzipSync(contents).length} bytes`) },🤖 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 `@bench/bundle/precompile-server-snapshot-build.config.ts` around lines 29 - 33, Update the build:done hook in the snapshot configuration to add a content assertion matching the gate used by precompile-server-unique-build.config.ts, checking the generated snapshot contents for absence of the runtime resolution/normalization markers such as meta:description and new Map. Keep the existing size logging and fail the build when the stripped snapshot still contains those markers.bench/precompile-perf-ci.mjs (1)
212-223: 🩺 Stability & Availability | 🔵 TrivialHeap-growth retry cap may cause occasional CI flakiness.
Only 3 attempts before throwing
A GC interrupted every experimental precompile heap-growth sample.On noisy CI runners with unpredictable background GC, this could intermittently fail the gate rather than just re-sampling. Consider raising the attempt count or backing off with a short delay between attempts if this proves flaky in practice.🤖 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 `@bench/precompile-perf-ci.mjs` around lines 212 - 223, Increase the retry allowance in the measure function so transient GC interruptions on noisy CI runners do not fail the benchmark after only three samples. Preserve the existing forceGC, sampling, and nonnegative-value behavior, and keep the final error as the fallback after the expanded retry limit.packages/react/src/precompiled/server.ts (1)
34-39: 🎯 Functional Correctness | 🔵 Trivial | 💤 Low valueUnnecessary
useRefguard in SSR context.In React SSR (e.g.,
renderToString,renderToPipeableStream), hook state does not persist across render passes. If the component re-renders (for example, due to a Suspense boundary retry), React initializes a freshuseRefobject on every execution.As a result, this
registeredguard behaves identically to an unguarded array push and provides no protection against multiple executions. Consider removing it entirely to simplify the hook, asunheadsafely handles duplicate tags downstream duringrenderSSRHead.♻️ Proposed refactor
- const registered = useRef(false) - if (!registered.current) { - head._p.push(input as unknown as PrecompiledHeadInput) - registered.current = true - } + head._p.push(input as unknown as PrecompiledHeadInput)(Note: You can also remove
useReffrom the React imports at the top of the file.)🤖 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 `@packages/react/src/precompiled/server.ts` around lines 34 - 39, Remove the registered useRef guard from the precompiled head registration logic so input is pushed directly to head._p during SSR execution. Also remove the now-unused useRef import, while preserving the existing input cast and registration behavior.
🤖 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 `@bench/bundle/bundles.ts`:
- Around line 25-34: Update the precompileClientDeferredAsync bundle entry to
reference the deferred build’s actual generated chunk rather than hardcoding
chunks/client.mjs. Align its file value with the existing deferred-build output
or generation mechanism so it remains valid when Rollup changes the chunk name,
while preserving the entry’s comparison and category.
In `@packages/react/src/precompiled/client-csr.ts`:
- Around line 36-39: Prevent useEffect thrashing by storing the finalized plan
in a useRef and using planRef.current when calling head.push, while removing
plan from the effect dependencies. Apply this change in
packages/react/src/precompiled/client-csr.ts lines 36-39 and
packages/react/src/precompiled/client-deferred.ts lines 36-39; retain head as
the dependency.
In `@packages/svelte/src/precompiled/client.ts`:
- Around line 9-12: The precompiled Svelte and Solid useHead adapters require
options and throw when transformed calls omit them. In
packages/svelte/src/precompiled/client.ts lines 9-12,
packages/svelte/src/precompiled/client-csr.ts lines 11-14, and
packages/svelte/src/precompiled/client-deferred.ts lines 11-14, make options
optional and resolve head from the Svelte context when absent; update each
useSeoMeta cast signature accordingly. In
packages/solid-js/src/precompiled/server.ts lines 8-10, make options optional,
fall back to the Solid context when omitted, and update the useSeoMeta cast
signature accordingly.
---
Nitpick comments:
In `@bench/bundle/precompile-server-snapshot-build.config.ts`:
- Around line 29-33: Update the build:done hook in the snapshot configuration to
add a content assertion matching the gate used by
precompile-server-unique-build.config.ts, checking the generated snapshot
contents for absence of the runtime resolution/normalization markers such as
meta:description and new Map. Keep the existing size logging and fail the build
when the stripped snapshot still contains those markers.
In `@bench/precompile-perf-ci.mjs`:
- Around line 212-223: Increase the retry allowance in the measure function so
transient GC interruptions on noisy CI runners do not fail the benchmark after
only three samples. Preserve the existing forceGC, sampling, and
nonnegative-value behavior, and keep the final error as the fallback after the
expanded retry limit.
In `@packages/react/src/precompiled/server.ts`:
- Around line 34-39: Remove the registered useRef guard from the precompiled
head registration logic so input is pushed directly to head._p during SSR
execution. Also remove the now-unused useRef import, while preserving the
existing input cast and registration behavior.
In `@packages/unhead/precompiled.build.config.ts`:
- Around line 8-11: Update the comment adjacent to failOnWarn in the precompiled
build configuration to describe the first pass as emitting the initial
precompiled entries before the rest of the package exists, rather than claiming
it emits one export. Keep the existing build behavior unchanged.
🪄 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: 59e87ef1-d20a-4d30-8a13-2e9cd2fe0ace
📒 Files selected for processing (101)
.github/workflows/bundle-size.ymlbench/bundle/bundles.tsbench/bundle/precompile-client-deferred-runtime-build.config.tsbench/bundle/precompile-client-profile-build.config.tsbench/bundle/precompile-client-runtime-build.config.tsbench/bundle/precompile-report.tsbench/bundle/precompile-runtime-build.config.tsbench/bundle/precompile-server-snapshot-build.config.tsbench/bundle/precompile-server-unique-build.config.tsbench/bundle/src/client/precompile-runtime-off.tsbench/bundle/src/client/precompile-runtime.tsbench/bundle/src/client/precompile-snapshot.tsbench/bundle/src/vue-server/precompile-runtime-off.tsbench/bundle/src/vue-server/precompile-runtime.tsbench/bundle/src/vue-server/precompile-snapshot.tsbench/bundle/src/vue-server/precompile-unique.tsbench/bundle/vue-client-seo-plugin-build.config.tsbench/precompile-gate.mjsbench/precompile-perf-ci.mjsdocs/head/1.guides/build-plugins/0.overview.mdpackage.jsonpackages/bundler/README.mdpackages/bundler/src/unplugin/CreateHeadTransform.tspackages/bundler/src/unplugin/createTransformPipeline.tspackages/bundler/src/unplugin/framework.tspackages/bundler/src/unplugin/types.tspackages/bundler/src/unplugin/vite.tspackages/bundler/test/createHeadTransform.test.tspackages/bundler/test/fixtures/vite-build/precompiled-client.tspackages/bundler/test/framework.test.tspackages/bundler/test/precompileTransform.test.tspackages/bundler/test/viteBuild.integration.test.tspackages/react/build.config.tspackages/react/package.jsonpackages/react/src/precompiled/client-csr.tspackages/react/src/precompiled/client-deferred.tspackages/react/src/precompiled/client.tspackages/react/src/precompiled/index.tspackages/react/src/precompiled/server.tspackages/react/test/precompiledClient.test.tsxpackages/react/test/precompiledClientProfiles.test.tsxpackages/react/test/precompiledNeutral.test.tspackages/react/test/precompiledServer.test.tsxpackages/react/test/public-types.test.tspackages/react/vitest.config.tspackages/solid-js/build.config.tspackages/solid-js/package.jsonpackages/solid-js/src/precompiled.tspackages/solid-js/src/precompiled/client-csr.tspackages/solid-js/src/precompiled/client-deferred.tspackages/solid-js/src/precompiled/client.tspackages/solid-js/src/precompiled/server.tspackages/solid-js/test/precompiled.test.tspackages/solid-js/vitest.config.tspackages/svelte/build.config.tspackages/svelte/package.jsonpackages/svelte/src/precompiled.tspackages/svelte/src/precompiled/client-csr.tspackages/svelte/src/precompiled/client-deferred.tspackages/svelte/src/precompiled/client.tspackages/svelte/src/precompiled/server.tspackages/svelte/test/fixtures/Precompiled.sveltepackages/svelte/test/fixtures/PrecompiledCsr.sveltepackages/svelte/test/fixtures/PrecompiledDeferred.sveltepackages/svelte/test/precompiled.test.tspackages/svelte/vitest.config.tspackages/unhead/build.config.tspackages/unhead/package.jsonpackages/unhead/precompiled.build.config.tspackages/unhead/src/precompiled/client-csr.tspackages/unhead/src/precompiled/client-deferred.tspackages/unhead/src/precompiled/client-snapshot.tspackages/unhead/src/precompiled/client.tspackages/unhead/src/precompiled/server-snapshot.tspackages/unhead/src/precompiled/server-unique.tspackages/unhead/src/precompiled/server.tspackages/unhead/src/server/createHead.tspackages/unhead/src/server/defaults.tspackages/unhead/src/utils/resolve.tspackages/unhead/test/unit/precompiledClient.test.tspackages/unhead/test/unit/precompiledClientCsr.test.tspackages/unhead/test/unit/precompiledClientDeferred.test.tspackages/unhead/test/unit/precompiledServer.test.tspackages/unhead/test/unit/precompiledSnapshot.test.tspackages/unhead/test/unit/precompiledUnique.test.tspackages/vue/build.config.tspackages/vue/package.jsonpackages/vue/src/precompiled/client-csr.tspackages/vue/src/precompiled/client-deferred.tspackages/vue/src/precompiled/client.tspackages/vue/src/precompiled/index.tspackages/vue/src/precompiled/server.tspackages/vue/test/unit/precompiledClient.test.tspackages/vue/test/unit/precompiledClientProfiles.test.tspackages/vue/test/unit/precompiledServer.test.tspackages/vue/vitest.config.tstest/exports/react.yamltest/exports/solid-js.yamltest/exports/svelte.yamltest/exports/unhead.yamltest/exports/vue.yaml
🚧 Files skipped from review as they are similar to previous changes (6)
- packages/bundler/src/unplugin/vite.ts
- bench/bundle/src/vue-server/precompile-runtime-off.ts
- packages/bundler/src/unplugin/framework.ts
- .github/workflows/bundle-size.yml
- packages/bundler/README.md
- package.json
# Conflicts: # .github/workflows/bundle-size.yml # bench/bundle/report.ts # packages/bundler/src/unplugin/MinifyTransform.ts
🤖 CLOSED
GitHub closed this pull request. No further automated Review will run. |
🔗 Linked issue
Related to #832.
❓ Type of change
📚 Description
Adds opt-in build-time precompilation for static head declarations across server and client runtimes. Unsupported syntax fails with source context, while normal Unhead imports and runtime behavior remain unchanged when precompilation is disabled.