Skip to content

Commit 40cdbf6

Browse files
committed
More strict transformed content checking
1 parent 81a6d61 commit 40cdbf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ function loadImportContent(
289289
}
290290
return Promise.resolve(options.transform(content, filename, options))
291291
.then(function(transformed) {
292-
return transformed == null ? content : transformed
292+
return typeof transformed === "string" ? transformed : content
293293
})
294294
})
295295
.then(function(content) {

0 commit comments

Comments
 (0)