pipe finished { GulpUglifyError: unable to minify JavaScript } - Stream.js Unhandled Stream Error
Closed this issue · 3 comments
retrocausal commented
While Minifying,
Uglify encountered a closure that has parameter values initialized within the function definition.
Like So:
var myFunc = (function(){
return function ( initialize = true, id = "space" ) {
do blah blah blah
};
})
Using PumP,
I got this screenshot of the detailed traceback to the origin of the error
which traces back to the line ,
return function ( initialize = true, id = "space" ) {
in my js file.
Why should this be an issue? I remove the parameter initializations, and uglify works fine.
terinjokes commented
UglifyJS doesn't yet support ES6.
…On Mar 14, 2017 2:26 AM, "Nitin Prabhakar" ***@***.***> wrote:
While Minifying,
Uglify encountered a closure that has parameter values initialized within
the function definition.
Like So:
var myFunc = (function(){
return function ( initialize = true, id = "space" ) {
do blah blah blah
};
})
Using PumP <https://www.npmjs.com/package/pump>,
I got this screenshot of the detailed traceback to the origin of the error
[image: screenshot from 2017-03-14 14-46-33]
<https://cloud.githubusercontent.com/assets/15086525/23893665/63831ed0-08c5-11e7-8976-9d88f07fc7f0.png>
which traces back to the line ,
return function ( initialize = true, id = "space" ) {
in my js file.
Why should this be an issue? I remove the parameter initializations, and
uglify works fine.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#276>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAQsZd1h6cUHEDcrYS_RA12VRpzWTTZvks5rll1VgaJpZM4McUD1>
.
retrocausal commented
Ah! Will you accommodate ES6 syntax any time soon? Thanks for the awesome plugin otherwise!
parkerproject commented
transform with babel before minifying