Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add required minimizer setting to the generated Nest rspack conf… (
#28629) ## Current Behavior When using Nest.js in combination with [decorator metadata](https://docs.nestjs.com/fundamentals/execution-context#reflection-and-metadata), the class names and handlers become mangled/compressed causing them to lose the reference to the correct class/handler name. ## Expected Behavior The decorator metadata works as intended. ## Approach This PR implements a custom instance of the `SwcJsMinimizerRspackPlugin`, where the setting is modified to keep original class and function names from the `compress` and `mangle` options. ## Related I've opened a related PR on the rspack-examples repository: rspack-contrib/rspack-examples#158
- Loading branch information