Skip to content

Commit

Permalink
Merge eae0d6f into ae19570
Browse files Browse the repository at this point in the history
  • Loading branch information
dword-design committed Jun 11, 2021
2 parents ae19570 + eae0d6f commit 07701fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -120,6 +120,7 @@ function doSomething() {

The `slice` operation removes all new `module.children` entries created during the `stealthyRequire(...)` call and thus `freshInstance` gets garbage collected after `doSomething()` returns.

There is the dedicated package [stealthy-require-no-leak](https://github.com/dword-design/stealthy-require-no-leak) that implements this adjustment.

## Technical Walkthrough

Expand Down

0 comments on commit 07701fb

Please sign in to comment.