Comments (3)
Heres the project if you're interested: http://tolmasky.com/letmeshowyou/uglifyify-bug.zip
from uglifyify.
Further inspection shows that it is mangle:true that is causing it (mangle:false leaves the file alone).
from uglifyify.
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.
from uglifyify.
Related Issues (20)
- command line usage does not work HOT 2
- (v4) `ignore` is not a supported option HOT 2
- (v4) How to use "extensions" (-x, --exts) with node HOT 2
- Add CHANGELOG.md HOT 4
- Add better tests HOT 2
- Uglifyify fails when calling uglify HOT 3
- Missing command line entry
- --ignore flag being ignored in Jenkins environment HOT 2
- New dependency name: uglify-es => terser #1 HOT 2
- Fatal error: `ignore` is not a supported option while parsing file: HOT 2
- Update to [email protected]
- Inlined sourcemaps
- Global flag is ignored
- beautify does not work; should be an output option
- update package extend to >2.0.2 to remove package vurnerability HOT 1
- Wrong CLI option for Source Maps in README.md
- SyntaxError: 'return' outside of function while parsing HOT 1
- Optional chaining support
- Update terser up to 4.8.1 HOT 1
- update to a maintained `through`?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uglifyify.