We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62b1f02 commit 4a4a71aCopy full SHA for 4a4a71a
lib/index.js
@@ -32,7 +32,7 @@ exports.default = function (source) {
32
33
var emitWarnings = function emitWarnings(result) {
34
result.warnings().forEach(function (msg) {
35
- return _this.emitWarning(msg.toString());
+ return _this.emitWarning(new Error(msg.toString()));
36
});
37
return result;
38
};
src/lib/index.js
@@ -26,7 +26,7 @@ export default function (source) {
26
}
27
28
const emitWarnings = result => {
29
- result.warnings().forEach(msg => this.emitWarning(msg.toString()))
+ result.warnings().forEach(msg => this.emitWarning(new Error(msg.toString())))
30
return result
31
0 commit comments