We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c8cf0d commit 1bda710Copy full SHA for 1bda710
src/node/build/render.ts
@@ -205,7 +205,9 @@ function resolvePageImports(
205
// they start fetching as early as possible
206
let srcPath = path.resolve(config.srcDir, page)
207
try {
208
- srcPath = fs.realpathSync(srcPath)
+ if (!config.vite?.resolve?.preserveSymlinks) {
209
+ srcPath = fs.realpathSync(srcPath)
210
+ }
211
} catch (e) {
212
// if the page is a virtual page generated by a dynamic route this would
213
// fail, which is expected
0 commit comments