Skip to content

Commit

Permalink
Fix memory leak (#1718)
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Nov 18, 2021
1 parent ff47c73 commit da3e481
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/utils/style-variables/index.js
Expand Up @@ -32,8 +32,8 @@ module.exports = {
StyleVariablesContext
}

/** @type {Map<VElement, StyleVariablesContext>} */
const cache = new Map()
/** @type {WeakMap<VElement, StyleVariablesContext>} */
const cache = new WeakMap()
/**
* Get the style vars context
* @param {RuleContext} context
Expand Down

0 comments on commit da3e481

Please sign in to comment.