We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 868948f commit 0876dbaCopy full SHA for 0876dba
src/index.js
@@ -94,7 +94,9 @@ export default async function loader(input, inputMap) {
94
let sourceContent;
95
96
const originalSourceContent =
97
- map.sourcesContent && typeof map.sourcesContent[i] !== "undefined"
+ map.sourcesContent &&
98
+ typeof map.sourcesContent[i] !== "undefined" &&
99
+ map.sourcesContent[i] !== null
100
? map.sourcesContent[i]
101
: // eslint-disable-next-line no-undefined
102
undefined;
0 commit comments