Skip to content

Commit

Permalink
fix: consider null source content as mark to not skip reading
Browse files Browse the repository at this point in the history
  • Loading branch information
ilgonmic committed May 17, 2021
1 parent 868948f commit 0876dba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ export default async function loader(input, inputMap) {
let sourceContent;

const originalSourceContent =
map.sourcesContent && typeof map.sourcesContent[i] !== "undefined"
map.sourcesContent &&
typeof map.sourcesContent[i] !== "undefined" &&
map.sourcesContent[i] !== null
? map.sourcesContent[i]
: // eslint-disable-next-line no-undefined
undefined;
Expand Down

0 comments on commit 0876dba

Please sign in to comment.