We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7b1f87 commit b541fefCopy full SHA for b541fef
lib/parse.ts
@@ -6,7 +6,7 @@ import {
6
} from './types'
7
8
const hash = require('hash-sum')
9
-const cache = require('lru-cache')(100)
+const cache = new (require('lru-cache'))(100)
10
11
const splitRE = /\r?\n/g
12
const emptyRE = /^(?:\/\/)?\s*$/
0 commit comments