rspack
rspack copied to clipboard
fix: compiler js object cannot be gc
Summary
Compiler is unable to GC due to some ThreadsafeFunctions, which include
- hooks callback
- 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).