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 Westbrook committed Apr 19, 2023
1 parent 2220764 commit dd026e1
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 dd026e1

Please sign in to comment.