Skip to content

Commit

Permalink
fix: support symbolic links in building docs dist (#184) (#185)
Browse files Browse the repository at this point in the history
fix #184
  • Loading branch information
lukeromanowicz authored Jan 22, 2021
1 parent 481c451 commit 5190604
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/node/build/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ 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 = normalizePath(path.resolve(config.root, page))
const srcPath = normalizePath(
fs.realpathSync(path.resolve(config.root, page))
)
const pageChunk = result.output.find(
(chunk) => chunk.type === 'chunk' && chunk.facadeModuleId === srcPath
) as OutputChunk
Expand Down

0 comments on commit 5190604

Please sign in to comment.