Skip to content

fix(cli): reload pack config on Windows in watch mode - #2826

Open
liangmiQwQ wants to merge 2 commits into
voidzero-dev:mainfrom
liangmiQwQ:liang/codex/fix-pack-watch-config-path
Open

liangmiQwQ wants to merge 2 commits into
voidzero-dev:mainfrom
liangmiQwQ:liang/codex/fix-pack-watch-config-path

Conversation

@liangmiQwQ

Copy link
Copy Markdown
Collaborator

Close #2811

Normalize Vite's config file path to native separators before passing it to tsdown. On Windows, Vite returns forward slashes while watcher events use backslashes, so tsdown's configuration dependency lookup misses the change and rebuilds with the old options. Matching the paths lets vp pack --watch reload the updated configuration.

🤖 Generated with Codex

@liangmiQwQ
liangmiQwQ marked this pull request as ready for review September 26, 2026 04:36
@liangmiQwQ

Copy link
Copy Markdown
Collaborator Author

cc @sxzz

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.

vp pack --watch: changes to pack config are not applied until restart

2 participants