Skip to content

Commit dd026e1

Browse files
43081jWestbrook
authored andcommitted
fix: specify maxsize
1 parent 2220764 commit dd026e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/dev-server-core/src/middleware/PluginTransformCache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class PluginTransformCache {
3232
constructor(private fileWatcher: FSWatcher, private rootDir: string) {
3333
this.lruCache = new LRUCache<string, CacheEntry>({
3434
sizeCalculation: (e, key) => e.body.length + (key ? key.length : 0),
35-
max: 52428800,
35+
maxSize: 52428800,
3636
noDisposeOnSet: true,
3737
dispose: (_value, cacheKey) => {
3838
// remove file path -> url mapping when we are no longer caching it

0 commit comments

Comments
 (0)