Skip to content

Commit 3464a7f

Browse files
authored
fix: inputSourceMap can be null (#1639)
* fix: inputSourceMap can be null * docs: Update CHANGELOG.md * chore: Update package.json
1 parent 9315855 commit 3464a7f

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 9.5.1
4+
* [fix: inputSourceMap can be null](https://github.com/TypeStrong/ts-loader/pull/1639) [#1638] - thanks @johnnyreilly and @michaeltford
5+
36
## 9.5.0
47
* [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
58

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ts-loader",
3-
"version": "9.5.0",
3+
"version": "9.5.1",
44
"description": "TypeScript loader for webpack",
55
"main": "index.js",
66
"types": "dist",

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ function makeSourceMapAndFinish(
149149
// in the first case, we simply return undefined.
150150
// in the second case we only need to return the newly generated source map
151151
// this avoids that we have to make a possibly expensive call to the source-map lib
152-
if (sourceMap === undefined || inputSourceMap === undefined) {
152+
if (sourceMap === undefined || !inputSourceMap) {
153153
callback(null, output, sourceMap);
154154
return;
155155
}

0 commit comments

Comments
 (0)