diff --git a/lib/utils/style-variables/index.js b/lib/utils/style-variables/index.js index 3127166a4..eca2f39d1 100644 --- a/lib/utils/style-variables/index.js +++ b/lib/utils/style-variables/index.js @@ -32,8 +32,8 @@ module.exports = { StyleVariablesContext } -/** @type {Map} */ -const cache = new Map() +/** @type {WeakMap} */ +const cache = new WeakMap() /** * Get the style vars context * @param {RuleContext} context