Skip to content

Commit

Permalink
fix: inputSourceMap can be null
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyreilly authored Nov 14, 2023
1 parent 9315855 commit 881ae9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function makeSourceMapAndFinish(
// in the first case, we simply return undefined.
// in the second case we only need to return the newly generated source map
// this avoids that we have to make a possibly expensive call to the source-map lib
if (sourceMap === undefined || inputSourceMap === undefined) {
if (sourceMap === undefined || !inputSourceMap) {
callback(null, output, sourceMap);
return;
}
Expand Down

0 comments on commit 881ae9e

Please sign in to comment.