Skip to content

Commit 82696c0

Browse files
committed
Fix cache
1 parent dec9c63 commit 82696c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cache.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ function Cache() {
3636

3737
var maxSize = process.env.TYPESCRIPT_CACHE_SIZE;
3838
this._cache = new LRU({
39-
max: maxSize || 1024 * 10 * 10
39+
max: maxSize || 1024 * 1024 * 10,
40+
length: function(str, key) { return str.length }
4041
});
4142
};
4243

0 commit comments

Comments
 (0)