Skip to content

Commit

Permalink
Instead of checking date, check time thats more accurate to see if so…
Browse files Browse the repository at this point in the history
…mething has changed (TypeStrong#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>
  • Loading branch information
sheetalkamat and johnnyreilly authored Dec 11, 2020
1 parent 172ebeb commit 566e6ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Changelog

## v8.0.12
* [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

## v8.0.11
* [Fixed build failing in yarn v2 pnp](https://github.com/TypeStrong/ts-loader/pull/1209) - @aicest
* [Fixed build failing in yarn v2 pnp](https://github.com/TypeStrong/ts-loader/pull/1209) - thanks @aicest

## v8.0.10
* [Fixed missing errors in watch mode in webpack5](https://github.com/TypeStrong/ts-loader/issues/1204) - thanks @appzuka
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": "8.0.11",
"version": "8.0.12",
"description": "TypeScript loader for webpack",
"main": "index.js",
"types": "dist",
Expand Down
2 changes: 1 addition & 1 deletion src/servicesHost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@ export function makeSolutionBuilderHost(
const existing = inputFiles.get(key) || missingFileModifiedTime;
const newTime =
compiler.sys.getModifiedTime!(fileName) || missingFileModifiedTime;
if (existing === newTime) {
if (existing.getTime() === newTime.getTime()) {
return;
}
const eventKind =
Expand Down

0 comments on commit 566e6ce

Please sign in to comment.