|
|
@ -89,7 +89,7 @@ function resolvePageImports(
|
|
|
|
// find the page's js chunk and inject script tags for its imports so that
|
|
|
|
// find the page's js chunk and inject script tags for its imports so that
|
|
|
|
// they are start fetching as early as possible
|
|
|
|
// 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(
|
|
|
|
const pageChunk = result.assets.find(
|
|
|
|
(chunk) => chunk.type === 'chunk' && chunk.facadeModuleId === srcPath
|
|
|
|
(chunk) => chunk.type === 'chunk' && chunk.facadeModuleId === srcPath
|
|
|
|
) as OutputChunk
|
|
|
|
) as OutputChunk
|
|
|
|