Skip to content

Commit 566e6ce

Browse files
Instead of checking date, check time thats more accurate to see if something has changed (#1217)
* Instead of checking date, check time thats more accurate to see if something has changed * Update CHANGELOG.md * Update package.json Co-authored-by: John Reilly <johnny_reilly@hotmail.com>
1 parent 172ebeb commit 566e6ce

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# Changelog
22

3+
## v8.0.12
4+
* [Instead of checking date, check time thats more accurate to see if something has changed](https://github.com/TypeStrong/ts-loader/pull/1217) - thanks @sheetalkamat
5+
36
## v8.0.11
4-
* [Fixed build failing in yarn v2 pnp](https://github.com/TypeStrong/ts-loader/pull/1209) - @aicest
7+
* [Fixed build failing in yarn v2 pnp](https://github.com/TypeStrong/ts-loader/pull/1209) - thanks @aicest
58

69
## v8.0.10
710
* [Fixed missing errors in watch mode in webpack5](https://github.com/TypeStrong/ts-loader/issues/1204) - thanks @appzuka

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ts-loader",
3-
"version": "8.0.11",
3+
"version": "8.0.12",
44
"description": "TypeScript loader for webpack",
55
"main": "index.js",
66
"types": "dist",

src/servicesHost.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@ export function makeSolutionBuilderHost(
10401040
const existing = inputFiles.get(key) || missingFileModifiedTime;
10411041
const newTime =
10421042
compiler.sys.getModifiedTime!(fileName) || missingFileModifiedTime;
1043-
if (existing === newTime) {
1043+
if (existing.getTime() === newTime.getTime()) {
10441044
return;
10451045
}
10461046
const eventKind =

0 commit comments

Comments
 (0)