|
|
@ -88,7 +88,9 @@ 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 = normalizePath(path.resolve(config.root, page))
|
|
|
|
const srcPath = normalizePath(
|
|
|
|
|
|
|
|
fs.realpathSync(path.resolve(config.root, page))
|
|
|
|
|
|
|
|
)
|
|
|
|
const pageChunk = result.output.find(
|
|
|
|
const pageChunk = result.output.find(
|
|
|
|
(chunk) => chunk.type === 'chunk' && chunk.facadeModuleId === srcPath
|
|
|
|
(chunk) => chunk.type === 'chunk' && chunk.facadeModuleId === srcPath
|
|
|
|
) as OutputChunk
|
|
|
|
) as OutputChunk
|
|
|
|