Skip to content

Commit

Permalink
Merge branch 'v2' into molejniczak/fail-reporters
Browse files Browse the repository at this point in the history
  • Loading branch information
MonicaOlejniczak authored May 23, 2024
2 parents f94539b + 3549c91 commit 0848df1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/core/core/src/requests/WriteBundlesRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ async function run({input, api, farm, options}) {
if (bundle.isPlaceholder) {
let hash = bundle.id.slice(-8);
hashRefToNameHash.set(bundle.hashReference, hash);
let name = nullthrows(bundle.name).replace(bundle.hashReference, hash);
let name = nullthrows(
bundle.name,
`Expected ${bundle.type} bundle to have a name`,
).replace(bundle.hashReference, hash);
res.set(bundle.id, {
filePath: joinProjectPath(bundle.target.distDir, name),
type: bundle.type, // FIXME: this is wrong if the packager changes the type...
Expand Down

0 comments on commit 0848df1

Please sign in to comment.