This pull request contains modifications to the src/cache.js and src/index.js files, primarily focusing on simplifying the caching system. The changes include the removal of the pluginInstance parameter and associated caches, and the elimination of the snapshot creation and validation process.
Changes to caching system:
src/cache.js: Removed the pluginInstance parameter from the runCached function [1]. Also removed the snapshots and faviconCache WeakMaps and their associated logic, which was used for caching and validating snapshots [2][3][4].
src/index.js: Removed the this argument, which represented the pluginInstance, from the call to runCached in the FaviconsWebpackPlugin class. This change aligns with the removal of the pluginInstance parameter in runCached.
This pull request contains modifications to the
src/cache.js
andsrc/index.js
files, primarily focusing on simplifying the caching system. The changes include the removal of thepluginInstance
parameter and associated caches, and the elimination of the snapshot creation and validation process.Changes to caching system:
src/cache.js
: Removed thepluginInstance
parameter from therunCached
function [1]. Also removed thesnapshots
andfaviconCache
WeakMaps and their associated logic, which was used for caching and validating snapshots [2] [3] [4].src/index.js
: Removed thethis
argument, which represented thepluginInstance
, from the call torunCached
in theFaviconsWebpackPlugin
class. This change aligns with the removal of thepluginInstance
parameter inrunCached
.