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 (#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 committed 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
@@ -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
@@ -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
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.