The backend doesn't really need to have minified JS files. It's used by a relative small amount of users that will easily have these files in browser cache.
On the other hand, having these files minified means making harder the work of the backend developers.
Yes, you can pretty print them in browser dev tools but you will still have an harder to understand code.
Updated by Georg Ringer 8 months ago
- Status changed from New to Rejected
thanks for creating the issue. Although it might help for debugging a bit there are more reasons why those are minified:
- Editors are only satisfied if the backend which is their daily tool is fast. If the editors aren't happy, TYPO3 might not be the best tool anymore
- The JS code is converted already in most of the times from TypeScript anyway
To improve the understanding I suggest you checkout https://github.com/TYPO3/TYPO3.CMS/tree/master/Build/Sources/TypeScript which the source of truth.
Updated by Christian Toffolo 8 months ago
1. Not a big deal for editors eventually. The difference in KB in this case is minimal and it only affect the first hit then it's browser cached.
2. Instead it's a big deal for developers I guess. Especially for new comers that are trying to understand what's happening in the BE at JS level. Dev tool debugging a minified JS (even pretty printed) it's hard for obvious reasons.
So IMHO the benefits of 2. surpasses by far the small delay of 1.