Unverified Commit f7eed079 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Use realpath when emitting traced package.json (#39683)

This ensures we emit the real path when emitting traced package.json files so that we don't conflict with symlinked package paths.
x-ref: slack thread
Bug

 Related issues linked using fixes #number
 Integration tests added
 Errors have helpful link attached, see contributing.md
parent ee134ee3
...@@ -563,7 +563,7 @@ export class TraceEntryPointsPlugin implements webpack.WebpackPluginInstance { ...@@ -563,7 +563,7 @@ export class TraceEntryPointsPlugin implements webpack.WebpackPluginInstance {
const curPackageJsonPath = `${requestPath}/package.json` const curPackageJsonPath = `${requestPath}/package.json`
if (await job.isFile(curPackageJsonPath)) { if (await job.isFile(curPackageJsonPath)) {
await job.emitFile( await job.emitFile(
curPackageJsonPath, await job.realpath(curPackageJsonPath),
'resolve', 'resolve',
parent parent
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment