We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffb9d24 commit c7f053cCopy full SHA for c7f053c
crates/vite_task_bin/tests/e2e_snapshots/main.rs
@@ -111,7 +111,9 @@ fn resolve_runtime_vp_path() -> AbsolutePathBuf {
111
112
let runtime_manifest = runtime_manifest_dir();
113
let runtime_vp = runtime_manifest.join(vp_relative_path);
114
- AbsolutePathBuf::new(runtime_vp).unwrap()
+ let resolved_vp = if runtime_vp.exists() { runtime_vp } else { compile_time_vp.to_path_buf() };
115
+ let resolved_vp = resolved_vp.canonicalize().unwrap_or(resolved_vp);
116
+ AbsolutePathBuf::new(resolved_vp).unwrap()
117
}
118
119
const fn default_true() -> bool {
0 commit comments