3 ms·
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, a
by uryga 6y ago
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
- RyanGoosling 6y agoI've combed through minified JS a number of times. Not enough if you want to prevent someone from going through your shit.