jsmin
jsmin copied to clipboard
spaces within backtick strings are left out in some circumstances
e.g.,
d3.selectAll(`#${that.options.statstable.containerid} table`).style("display", null);
is compressed to
d3.selectAll(`#${that.options.statstable.containerid}table`).style("display",null);
Note the missing space between } and table
The current version does not promise to support backtick strings. You might get success by using the quote_chars parameter, but it's not explicitly supported; in particular there aren't robust tests for the various things that can appear inside the string. I no longer maintain jsmin to keep up with changes to javascript's syntax.