-
-
Notifications
You must be signed in to change notification settings - Fork 179
fix: disable inline optimization by default #308
fix: disable inline optimization by default #308
Conversation
89f37e4
to
0fe2273
Compare
0fe2273
to
99b1291
Compare
output: { | ||
shebang: true, | ||
comments: false, | ||
beautify: false, | ||
semicolons: true, | ||
...output, | ||
}, | ||
// Ignoring sourcemap from options | ||
// Ignoring sourceMap from options |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in option name
src/uglify/minify.js
Outdated
...parse, | ||
}, | ||
compress: { | ||
...compress, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this won't handle compress: false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nor will it handle compress: true
src/uglify/minify.js
Outdated
...compress, | ||
}, | ||
mangle: mangle == null ? true : { | ||
...mangle, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this won't handle mangle: false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nor will it handle mangle: true
src/index.js
Outdated
@@ -42,6 +42,9 @@ class UglifyJsPlugin { | |||
include, | |||
exclude, | |||
uglifyOptions: { | |||
compress: { | |||
inline: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inline: 1
has no reported issues in [email protected]
.
$ echo '!function(){ console.log(42); }();' | bin/uglifyjs -c inline=false
!function(){console.log(42)}();
$ echo '!function(){ console.log(42); }();' | bin/uglifyjs -c inline=1
console.log(42);
If this plugin is upgraded to use |
@kzc we can not merge use
|
I disagree. Disabling |
@kzc other developers disagree with
All I'm trying to do is find the best solution for everyone and I'm tired of being between these disputes. You suggest using |
I've been involved with the development of both |
@kzc After release major version with |
99b1291
to
7877e08
Compare
LGTM |
fixes #307 fixes #264
Also we have problem with using option as object, they rewrited after first run.
Also improve readme
A lot of new tests