Skip to content

fix: resolve native config compat warning paths relative to cwd - #23213

Open
btea wants to merge 1 commit into
vitejs:mainfrom
btea:fix/native-config-compat-path-resolve
Open

btea wants to merge 1 commit into
vitejs:mainfrom
btea:fix/native-config-compat-path-resolve

Conversation

@btea

@btea btea commented Aug 9, 2026 •

Copy link
Copy Markdown
Contributor

The file location in native config compat warnings was computed relative to root, which can differ from the terminal's working directory when root is set to a subdirectory (e.g. vite packages-private/sfc-playground).

This made the ./vite.config.ts:line:column path unresolvable from the terminal. Use process.cwd() instead so the path is always clickable.

refs #22850

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant