Skip to content

Commit 0876dba

Browse files
committed
fix: consider null source content as mark to not skip reading
1 parent 868948f commit 0876dba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ export default async function loader(input, inputMap) {
9494
let sourceContent;
9595

9696
const originalSourceContent =
97-
map.sourcesContent && typeof map.sourcesContent[i] !== "undefined"
97+
map.sourcesContent &&
98+
typeof map.sourcesContent[i] !== "undefined" &&
99+
map.sourcesContent[i] !== null
98100
? map.sourcesContent[i]
99101
: // eslint-disable-next-line no-undefined
100102
undefined;

0 commit comments

Comments
 (0)