diff --git a/lib/cache.js b/lib/cache.js index d3726d6..90e277d 100644 --- a/lib/cache.js +++ b/lib/cache.js @@ -42,7 +42,7 @@ class BuildCache { * @returns {Promise} */ async set(absPath, result, originContent) { - const m = process.memoryUsage.rss(); + const m = process.memoryUsage().rss; if (m / 1024 / 1024 > 250) { this.log('memory usage > 250M'); this.clear(); diff --git a/package.json b/package.json index f11e349..393af89 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "esbuild-css-modules-plugin", - "version": "2.2.10", + "version": "2.2.11", "description": "A esbuild plugin to bundle css modules into js(x)/ts(x).", "main": "index.js", "keywords": [