rspack icon indicating copy to clipboard operation
rspack copied to clipboard

fix: compiler js object cannot be gc

Open SyMind opened this issue 7 months ago • 2 comments

Summary

Compiler is unable to GC due to some ThreadsafeFunctions, which include

  1. hooks callback
  2. run_loaders

The solution is to strictly drop these ThreadsafeFunctions at the end of the build.

Checklist

  • [ ] Tests updated (or not required).
  • [ ] Documentation updated (or not required).

SyMind avatar Mar 14 '25 23:03 SyMind