As a step towards T178356, it would be useful if individual resource modules had a way to opt-in to using the matthiasmullie/minify JS minification library (which supports ES6 syntax) instead of the current minifier (which is not ES6 compatible). This would allow us to test out the performance and reliability of this tool in preparation for wider usage.
Some relevant patches: https://gerrit.wikimedia.org/r/q/hashtag:%22es6-min%22+(status:open%20OR%20status:merged)
On a related note, there may be other behaviors we would like front-end code to be able to opt-into in the future (especially if we ever introduce a front-end build step of some sort), so this might be a good opportunity to think generally about what an "options API" for ResourceLoader modules might look like.