Skip to content

Commit

Permalink
More strict transformed content checking
Browse files Browse the repository at this point in the history
  • Loading branch information
TrySound committed Jan 10, 2016
1 parent 81a6d61 commit 40cdbf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ function loadImportContent(
}
return Promise.resolve(options.transform(content, filename, options))
.then(function(transformed) {
return transformed == null ? content : transformed
return typeof transformed === "string" ? transformed : content
})
})
.then(function(content) {
Expand Down

0 comments on commit 40cdbf6

Please sign in to comment.