Draft: Uses esbuild for asset minification via esbuild-loader
What does this MR do and why?
This MR tentatively introduces minification of production assets using esbuild via esbuild-loader.
This is a part of a larger effort to migrate to webpack 5.
Minification with esbuild should reduce production asset compilation time, but also reduces the minimum resource requirements for webpack 5.
More context about the performance benchmarks can be found in this issue: https://gitlab.com/gitlab-org/quality/team-tasks/-/issues/1346
Screenshots or screen recordings
These are strongly recommended to assist reviewers and reduce the time to merge your change.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.