Skip to content

fix: fix resolve path on windows#73

Merged
yyx990803 merged 2 commits into
vitejs:masterfrom
pikax:fix/windows_path_resolve
May 7, 2020
Merged

fix: fix resolve path on windows#73
yyx990803 merged 2 commits into
vitejs:masterfrom
pikax:fix/windows_path_resolve

Conversation

@pikax
Copy link
Copy Markdown
Contributor

@pikax pikax commented May 7, 2020

On windows using path.resolve will resolve the path relative to the current location, because the importer would be /index.html, the dirname is / making the path.resolve to be resolved drivers root eg: C:/

fixes #70 #69

@yyx990803 yyx990803 merged commit 9f6f0a6 into vitejs:master May 7, 2020
@pikax pikax deleted the fix/windows_path_resolve branch May 7, 2020 18:40
hi-ogawa pushed a commit to hi-ogawa/vite that referenced this pull request Dec 6, 2024
Co-authored-by: Yury <YurySolovyov@users.noreply.github.com>
hi-ogawa pushed a commit to hi-ogawa/vite that referenced this pull request Jan 6, 2025
Co-authored-by: Yury <YurySolovyov@users.noreply.github.com>
hi-ogawa pushed a commit to hi-ogawa/vite that referenced this pull request Feb 18, 2025
Co-authored-by: Yury <YurySolovyov@users.noreply.github.com>
hi-ogawa pushed a commit to hi-ogawa/vite that referenced this pull request Mar 10, 2025
Co-authored-by: Yury <YurySolovyov@users.noreply.github.com>
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.

vite 0.11.3 does not work on windows

2 participants