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
You can see the issue by entering the following example into the amdclean page:
// d3 UMD stanza(function(){vard3={};if(typeofdefine==="function"&&define.amd)define('d3',d3);elseif(typeofmodule==="object"&&module.exports)module.exports=d3;this.d3=d3;}());// modules become candidates for hoistingdefine('foo',['d3'],function(d3){reference(d3);});define('bar',['d3'],function(d3){reference(d3);});
I've disabled aggressive optimizations to avoid the issue, but it seems a shame to lose the benefits over an edge case like this.
The text was updated successfully, but these errors were encountered:
Given a module like D3, which has the following UMD stanza:
amdclean will, if aggressive optimizations are enabled and two modules refer to it, break the
d3
identifier by overwriting it:You can see the issue by entering the following example into the amdclean page:
I've disabled aggressive optimizations to avoid the issue, but it seems a shame to lose the benefits over an edge case like this.
The text was updated successfully, but these errors were encountered: