Skip to content

Commit

Permalink
Use realpath when emitting traced package.json (#39683)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ijjk committed Aug 18, 2022
1 parent ee134ee commit f7eed07
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -563,7 +563,7 @@ export class TraceEntryPointsPlugin implements webpack.WebpackPluginInstance {
const curPackageJsonPath = `${requestPath}/package.json`
if (await job.isFile(curPackageJsonPath)) {
await job.emitFile(
curPackageJsonPath,
await job.realpath(curPackageJsonPath),
'resolve',
parent
)
Expand Down

0 comments on commit f7eed07

Please sign in to comment.