Open tolmasky opened 9 years ago
Heres the project if you're interested: http://tolmasky.com/letmeshowyou/uglifyify-bug.zip
Further inspection shows that it is mangle:true that is causing it (mangle:false leaves the file alone).
I figured this out. The file in question does this:
(function (require)
{
})(require)
Thus, the require is mangled in the function, and then not gotten. By blacklisting "Require" to never be mangled it solves this. However, given that this was something that took place in a dependency's dependency (and of a popular package), I think blacklisting "require" should maybe be the default behavior. OR, its possible that this is broken in that it should first grab dependencies then mangle.
index.js:
browserify.js:
Running node browserify.js breaks because node_modules/babel-core/node_modules/source-map/lib/base64-vlq.js disappears.