mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 11:59:00 +00:00
### What does this PR do? The `then` function in `transpiler.transform` can cause GC, which means it can cause the `Transpiler` to become freed, which means that if that same transpiler is in use by another run on the other thread, it could have pointers to invalid memory. Also, `ESMCondition` has unnecesasry memory allocations and there is a very tiny memory leak in optionsFromLoaders ### How did you verify your code works? Existing tests --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>