# Vite optimizeDeps include exclude config no longer take effect option mapping changed Vite 8

Status: search-observed
Product: Vite
Last verified: 2026-06-25
Canonical HTML: https://gitdocs.org/fix/vite-optimizedeps-include-exclude-config-no-longer-take-effect-option-mapping-changed-vite-8
Machine JSON: https://gitdocs.org/api/fixes/vite-optimizedeps-include-exclude-config-no-longer-take-effect-option-mapping-changed-vite-8.json

## Exact Symptom

See the observed Codex queries below.

## Diagnosis

The old package/config name is syntactically valid, but current tool packaging and discovery rules live in external release documentation.

## Fix

```
Verifier checks the current package identity/config format and a real transformed output. Check emitted assets and runtime behavior across the supported target.
```

## 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 optimizeDeps include exclude config no longer take effect option mapping changed Vite 8
- site:vite.dev optimizeDeps include exclude Vite config dependency pre-bundling
- https://vite.dev/config/dep-optimization-options
- https://vite.dev/blog/announcing-vite8
- https://vite.dev/guide/migration

## Sources

- Vite migration from v7 to v8: https://vite.dev/guide/migration
- Official reference opened by Codex: https://vite.dev/config/dep-optimization-options
- Official reference opened by Codex: https://vite.dev/blog/announcing-vite8
- Official reference opened by Codex: https://vite.dev/guide/migration
