Inconsistent assetsBuildDirectory
path in "build/server/assets/server-build-[hash].js" while nested building in Windows
#18418
Labels
Describe the bug
The
assetsBuildDirectory
path inside "build/server/assets/server-build-[hash].js" is not consistent with other path formats in the same file when building in Windows.In Windows, when using
buildDirectory: 'build/subdir'
andbuildDirectory: 'build\\subdir'
will both generate a build at "build/server/assets/server-build-[hash].js" that contains:All other folder separators are correct, except
assetsBuildDirectory
. This breaks builds done in Windows that are then transferred to a Linux machine for deploy in Azure.Reproduction
Can't reproduce in view.new unfortunately
Steps to reproduce
-Grab a project with a vite.config.js.
-Build in Windows with
buildDirectory: 'build/subdir'
then withbuildDirectory: 'build\\subdir'
-Both "build/server/assets/server-build-[hash].js" builds generate the same "assetsBuildDirectory" which is correct in Windows, but not in Linux.
-I would expect: The "assetsBuildDirectory" to have "/".
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: