diff --git a/src/node/build/render.ts b/src/node/build/render.ts index 3883e38f..06b22dbf 100644 --- a/src/node/build/render.ts +++ b/src/node/build/render.ts @@ -89,7 +89,7 @@ function resolvePageImports( // find the page's js chunk and inject script tags for its imports so that // they are start fetching as early as possible - const srcPath = path.resolve(config.root, page) + const srcPath = fs.realpathSync(path.resolve(config.root, page)) const pageChunk = result.assets.find( (chunk) => chunk.type === 'chunk' && chunk.facadeModuleId === srcPath ) as OutputChunk