Skip to content

fix(build): windows platform build output path error#17818

Merged
bluwy merged 3 commits into
vitejs:mainfrom
btea:fix/build-path-error-in-window-platform
Aug 6, 2024
Merged

fix(build): windows platform build output path error#17818
bluwy merged 3 commits into
vitejs:mainfrom
btea:fix/build-path-error-in-window-platform

Conversation

@btea
Copy link
Copy Markdown
Contributor

@btea btea commented Aug 4, 2024

Description

fix #17584
path.posix.relative and path.relative resolve differently when the path starts with lowercase.

import path from 'node:path'
path.posix.relative('c:/a', 'C:/a/index.html') // => '../../C:/a/index.html'
path.relative('c:/a',  'C:/a/index.html') // => 'index.html'

Loading
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.

Invalid relative path in index.html when building with base option empty in Windows

4 participants