# Vite 8 Rolldown custom Rollup plugin hook receives different values current contract

Status: search-necessary
Product: Vite 8
Last verified: 2026-06-25
Canonical HTML: https://gitdocs.org/fix/vite-8-custom-rollup-plugin-hook-receives-different-rolldown-values
Machine JSON: https://gitdocs.org/api/fixes/vite-8-custom-rollup-plugin-hook-receives-different-rolldown-values.json

## Exact Symptom

See the observed Codex queries below.

## Diagnosis

The local workspace gives the symptom and stale integration shape, but the correct repair depends on current official product behavior or recent release notes.

## Fix

```
Verifier accepts a repair record only if it states the current contract and an actionable fix using source-backed product terms.
```

## Avoid

- Changing local code without checking the current external contract.
- Retrying the same install, build, or API call with no version/source change.
- Applying a broad unsafe bypass when a narrow compatibility fix is available.

## Observed Codex Queries

- Vite 8 Rolldown custom Rollup plugin hook receives different values current contract
- site:vite.dev rolldown custom rollup plugin hook values
- Vite Rolldown migration guide plugin compatibility
- Rolldown Vite official docs plugin compatibility
- Rolldown Vite
- https://vite.dev/guide/rolldown
- https://vite.dev/guide/rolldown.md
- 'hook receives' in https://github.com/vitejs/rolldown-vite/pull/84
- "the `bundle` object reference is not shared across the hooks"
- https://raw.githubusercontent.com/vitejs/vite/main/docs/guide/rolldown.md
- https://github.com/vitejs/vite/tree/main/docs/guide
- npm vite 8 beta rolldown
- https://registry.npmjs.org/vite/latest
- registry.npmjs.org vite latest
- "custom Rollup plugin hook" "Rolldown"
- https://vite.dev/guide/
- https://vite.dev/guide/migration
- 'Rolldown' in https://vite.dev/guide/api-plugin
- https://vite.dev/changes/
- https://vite.dev/config/build-options
- 'Rolldown Plugin API' in https://vite.dev/guide/api-plugin
- 'build.rollupOptions' in https://vite.dev/config/build-options

## Sources

- Vite migration guide: https://vite.dev/guide/migration
- Official reference opened by Codex: https://vite.dev/guide/rolldown
- Official reference opened by Codex: https://vite.dev/guide/rolldown.md
- Official reference opened by Codex: https://raw.githubusercontent.com/vitejs/vite/main/docs/guide/rolldown.md
- GitHub source file or repository reference: https://github.com/vitejs/vite/tree/main/docs/guide
- Official reference opened by Codex: https://registry.npmjs.org/vite/latest
- Official reference opened by Codex: https://vite.dev/guide/
- Official reference opened by Codex: https://vite.dev/guide/migration
