You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for human reading, i'v beautify the minified code and add comment it
functiona(a){varb=d3_geom_pointX,c=d3_geom_pointY,e=d3_true,d=d3_svg_lineLinear,f=d.key;returnfunction(c){functionf(){/** BUG: the Identifier d is defined at the top function scope **/h.push("M",d(a(j),.7))}/** * BUG: but the Identifier d is re-defined at the ForStatment.test, conflict */for(varg,h=[],j=[],d=-1,i=c.length,k=d3_functor(b);++d<i;)e.call(this,g=c[d],d) ? j.push([+k.call(this,g,d)]) : j.length&&(f(),j=[]);returnj.length&&f(),h.length ? h.join("") : null}}
We are experiencing a similar issue for the hoist-non-react-statics package. In the exported function, a variable from outside is reused/reassigned in the for loop, which make subsequent calls fail. Downgrading to 0.3.0 as a workaround for now.
babel-core: 6.26.0
babel-preset-minify: 0.4.0
default config
Input Code
here is the code fragment from D3.js
Actual Output
for human reading, i'v beautify the minified code and add comment it
Details
it seems #713 miss this case.
when rollback to babel-preset-minify:0.2.0 or 0.3.0, everything goes fine.
when i disable mangle, the output seems work fine
does it possible to force mangle after simplify?
The text was updated successfully, but these errors were encountered: