Using createWriteStream from graceful-fs will causes a memory leak. This was found while using the node-fs-extra@11.2.0 package which calls node-graceful-fs directly.
Replacing the graceful-fs createWriteStream with the node native fs.createWriteStream solves the issue.
Tested on node v20.9.0
Using
createWriteStream
from graceful-fs will causes a memory leak. This was found while using the node-fs-extra@11.2.0 package which calls node-graceful-fs directly.Replacing the graceful-fs
createWriteStream
with the node nativefs.createWriteStream
solves the issue.