Skip to content

Commit e8eee6a

Browse files
author
Jed Mao
committed
Fix warnings
1 parent 4f92a73 commit e8eee6a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,11 @@ function readImportedContent(
380380
.then(function() {
381381
return processor.process(newStyles)
382382
.then(function(newResult) {
383-
newResult.warnings().forEach(function(message) {
384-
result.warn(message)
383+
newResult.warnings().forEach(function(warning) {
384+
result.warn(warning.text, {
385+
node: warning.node,
386+
plugin: warning.plugin,
387+
})
385388
})
386389
})
387390
})

0 commit comments

Comments
 (0)