Skip to content

Commit b541fef

Browse files
authored
fix: LRUCache v5 has to be invoked with new (vuejs#83)
fixes vuejs#79
1 parent f7b1f87 commit b541fef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/parse.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
} from './types'
77

88
const hash = require('hash-sum')
9-
const cache = require('lru-cache')(100)
9+
const cache = new (require('lru-cache'))(100)
1010

1111
const splitRE = /\r?\n/g
1212
const emptyRE = /^(?:\/\/)?\s*$/

0 commit comments

Comments
 (0)