fix: support symbolic links in building docs dist (#184) (#185)

fix #184
pull/212/head
Łukasz Romanowicz 4 years ago committed by GitHub
parent 481c4513d7
commit 51906043d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save