rspack
rspack copied to clipboard
perf: cache swc loader
Summary
Checklist
Assume:
- Creating an
SwcLoaderJsOptions
is costly - Most modules are created with same swc loader options
Cost:
-
RwLock
and concurrent runtime. Maybe there is a better cache strategy.
🙏 Help me run the benchmark.
- [x] Tests updated (or not required).
- [x] Documentation updated (or not required).