Skip to content

Commit e652315

Browse files
authored
fix: add more detailed error messages (#1665)
* fix: add more detailed error messages * chore: meta
1 parent 36b6bf2 commit e652315

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

CHANGELOG.md

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

3+
## 9.5.2
4+
* [fix: add more detailed error messages](https://github.com/TypeStrong/ts-loader/pull/1665) - thanks @hai-x
5+
36
## 9.5.1
47
* [fix: inputSourceMap can be null](https://github.com/TypeStrong/ts-loader/pull/1639) [#1638] - thanks @johnnyreilly and @michaeltford
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.1",
3+
"version": "9.5.2",
44
"description": "TypeScript loader for webpack",
55
"main": "index.js",
66
"types": "dist",

src/instances.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ export function initializeInstance(
375375
} else {
376376
if (!loader._compiler!.hooks) {
377377
throw new Error(
378-
"You may be using an old version of webpack; please check you're using at least version 4"
378+
"You may be using an old version of webpack; please check you're using at least version 4. Or you should set `transpileOnly` or `happyPackMode` to true when using with `thread-loader`."
379379
);
380380
}
381381

src/servicesHost.ts

-1
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,6 @@ function createWatchFactory(
382382
}
383383
return result;
384384
}
385-
``;
386385

387386
function invokeRecursiveDirectoryWatcher(
388387
directory: string,

0 commit comments

Comments
 (0)