Skip to content

Commit

Permalink
fix: specify maxsize
Browse files Browse the repository at this point in the history
  • Loading branch information
43081j authored and koddsson committed Mar 31, 2023
1 parent 60268b4 commit 21951ad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class PluginTransformCache {
constructor(private fileWatcher: FSWatcher, private rootDir: string) {
this.lruCache = new LRUCache<string, CacheEntry>({
sizeCalculation: (e, key) => e.body.length + (key ? key.length : 0),
max: 52428800,
maxSize: 52428800,
noDisposeOnSet: true,
dispose: (_value, cacheKey) => {
// remove file path -> url mapping when we are no longer caching it
Expand Down

0 comments on commit 21951ad

Please sign in to comment.