fix: support symbolic links in building docs dist

pull/185/head
Luke Romanowicz 5 years ago
parent 5fc2ee09cd
commit b006bda2f2
No known key found for this signature in database
GPG Key ID: 2E77D0CDA70EA4A2

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

Loading…
Cancel
Save