Skip to content

Commit da3e481

Browse files
authored
Fix memory leak (#1718)
1 parent ff47c73 commit da3e481

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/utils/style-variables/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ module.exports = {
3232
StyleVariablesContext
3333
}
3434

35-
/** @type {Map<VElement, StyleVariablesContext>} */
36-
const cache = new Map()
35+
/** @type {WeakMap<VElement, StyleVariablesContext>} */
36+
const cache = new WeakMap()
3737
/**
3838
* Get the style vars context
3939
* @param {RuleContext} context

0 commit comments

Comments
 (0)