Skip to content

Commit

Permalink
fix: inputSourceMap can be null (#1639)
Browse files Browse the repository at this point in the history
* fix: inputSourceMap can be null

* docs: Update CHANGELOG.md

* chore: Update package.json
  • Loading branch information
johnnyreilly authored Nov 14, 2023
1 parent 9315855 commit 3464a7f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 9.5.1
* [fix: inputSourceMap can be null](https://github.com/TypeStrong/ts-loader/pull/1639) [#1638] - thanks @johnnyreilly and @michaeltford

## 9.5.0
* [Feature: map the input source map in case ts-loader is used in a loader pipeline](https://github.com/TypeStrong/ts-loader/pull/1626) - thanks @Ka0o0 and @bojanv55

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ts-loader",
"version": "9.5.0",
"version": "9.5.1",
"description": "TypeScript loader for webpack",
"main": "index.js",
"types": "dist",
Expand Down
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 3464a7f

Please sign in to comment.