isn't minification good enough at obfuscating the code? what does CommonJS add here?
(that's a legit question – i've sifted through webpacked JS a few times, and it mostly just added a bunch of
(function(module, require, ...) {
<your module here>
})(...)
around the code. tedious to read, but not much in the way obfuscation)and i guess if ES Modules turned out to be more performant (bc the module stuff is handled by native browser code, or maybe some HTTP/2 magic with loading), that could be an incentive for adoption