Skip to content

Commit

Permalink
fix: don't invalidate cache after timeout refresh (#1023)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait authored Mar 16, 2023
1 parent 721bbf1 commit 38d8513
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,16 @@ class MiniCssExtractPlugin {
*/
updateCacheModule(module) {
if (
this.content !== /** @type {CssModule} */ (module).content ||
!this.content.equals(/** @type {CssModule} */ (module).content) ||
this.layer !== /** @type {CssModule} */ (module).layer ||
this.supports !== /** @type {CssModule} */ (module).supports ||
this.media !== /** @type {CssModule} */ (module).media ||
this.sourceMap !== /** @type {CssModule} */ (module).sourceMap ||
(this.sourceMap
? !this.sourceMap.equals(
/** @type {Uint8Array} **/
(/** @type {CssModule} */ (module).sourceMap)
)
: false) ||
this.assets !== /** @type {CssModule} */ (module).assets ||
this.assetsInfo !== /** @type {CssModule} */ (module).assetsInfo
) {
Expand Down

0 comments on commit 38d8513

Please sign in to comment.