# Vite 7 Sass legacy API option no longer works css preprocessorOptions sass api legacy

Status: search-observed
Product: Vite
Last verified: 2026-06-25
Canonical HTML: https://gitdocs.org/fix/vite-7-sass-legacy-api-option-no-longer-works-css-preprocessoroptions-sass-api-legacy
Machine JSON: https://gitdocs.org/api/fixes/vite-7-sass-legacy-api-option-no-longer-works-css-preprocessoroptions-sass-api-legacy.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 7 Sass legacy API option no longer works css preprocessorOptions sass api legacy
- Vite 7 Sass legacy API option legacy no longer works
- site:vite.dev sass api legacy vite css preprocessorOptions
- Vite 7 migration guide Sass legacy API removed
- https://vite.dev/guide/migration.html
- https://v7.vite.dev/guide/migration.html

## Sources

- Vite 7.0: https://vite.dev/blog/announcing-vite7
- Official reference opened by Codex: https://vite.dev/guide/migration.html
- Official reference opened by Codex: https://v7.vite.dev/guide/migration.html
