You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have build setup that used to work in Vite pre 2.6, but now appears to be broken. In the Vite root dir, I have an symlink src/ that aliases to a directory outside of the Vite root. This is done for organizational purposes, when I build with manifest: true to output a manifest.json, the keys in the manifest used to look like this:
"src/main.js": {
but now it resolves the symlink as part of the path:
"../src/main.js": {
...which is not the desired result. Changing resolve.preserveSymlinks doesn't seem to have any effect.
It appears to resolve the symlink, and use that as the facadeModuleId , which appears to be a regression.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
Describe the bug
I have build setup that used to work in Vite pre 2.6, but now appears to be broken. In the Vite root dir, I have an symlink
src/
that aliases to a directory outside of the Vite root. This is done for organizational purposes, when I build withmanifest: true
to output amanifest.json
, the keys in the manifest used to look like this:but now it resolves the symlink as part of the path:
...which is not the desired result. Changing
resolve.preserveSymlinks
doesn't seem to have any effect.It appears to resolve the symlink, and use that as the
facadeModuleId
, which appears to be a regression.Reproduction
Steps to reproduce:
cd buildchain
thennpm run build
buildchain/dist/manifest.json
Expected result:
index.html
:"src/main.js"
Actual result:
"../src/main.js"
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: