Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Commit

Permalink
fix: return missing important information (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi committed Jun 15, 2018
1 parent 6ab0918 commit 4f50156
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -101,7 +101,7 @@ class UglifyJsPlugin {
}
}

return warningMessage;
return `UglifyJs Plugin: ${warningMessage} in ${file}`;
}

apply(compiler) {
Expand Down
2 changes: 1 addition & 1 deletion test/__snapshots__/all-options.test.js.snap
Expand Up @@ -57,6 +57,6 @@ exports[`when applied with all options matches snapshot: manifest.d6857f782c13a9

exports[`when applied with all options matches snapshot: warnings 1`] = `
Array [
"Dropping unused variable a [./test/fixtures/entry.js:4,0]",
"UglifyJs Plugin: Dropping unused variable a [./test/fixtures/entry.js:4,0] in main.0c220ec66316af2c1b24.js",
]
`;

0 comments on commit 4f50156

Please sign in to comment.