Skip to content

Commit

Permalink
Merge pull request #15888 from webpack/feature/issue-13695
Browse files Browse the repository at this point in the history
more informative error when emitting multiple assets
  • Loading branch information
sokra committed Jun 2, 2022
2 parents 2738eeb + cc0cd60 commit b1cc471
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/Compilation.js
Expand Up @@ -4241,7 +4241,11 @@ This prevents using hashes of each other and should be avoided.`);
if (!isSourceEqual(this.assets[file], source)) {
this.errors.push(
new WebpackError(
`Conflict: Multiple assets emit different content to the same filename ${file}`
`Conflict: Multiple assets emit different content to the same filename ${file}${
assetInfo.sourceFilename
? `. Original source ${assetInfo.sourceFilename}`
: ""
}`
)
);
this.assets[file] = source;
Expand Down

0 comments on commit b1cc471

Please sign in to comment.