Skip to content

Commit

Permalink
Include filename in cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
etr2460 committed Apr 21, 2019
1 parent 70067fb commit 6f47664
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/jest-transform/src/ScriptTransformer.ts
Expand Up @@ -94,6 +94,7 @@ export default class ScriptTransformer {
rootDir: this._config.rootDir,
}),
)
.update(filename)
.update(CACHE_VERSION)
.digest('hex');
} else {
Expand All @@ -102,6 +103,7 @@ export default class ScriptTransformer {
.update(fileData)
.update(configString)
.update(instrument ? 'instrument' : '')
.update(filename)
.update(CACHE_VERSION)
.digest('hex');
}
Expand Down

0 comments on commit 6f47664

Please sign in to comment.