Skip to content

Commit

Permalink
replace process.memoryUsage.rss() to process.memoryUsage().rss
Browse files Browse the repository at this point in the history
  • Loading branch information
indooorsman committed Mar 25, 2022
1 parent 10e0317 commit 056b48b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class BuildCache {
* @returns {Promise<void>}
*/
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();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down

0 comments on commit 056b48b

Please sign in to comment.