Open kurtextrem opened 3 years ago
Hmm - @kurtextrem not sure what's going on - here's the output I get from your example:
const n=(n,s)=>s.isSJS?`${s.type}__sjs`:s;function s(){(s=>{const t=JSON.stringify({},n);JSON.parse(t)})()}function t(){}export{s as a,t as b};
I left some comments on the slow-json-stringify PR.
Suppose I have the following two files: _prepare.mjs
and
main.mjs, which is the entry point.
This results in the following minification:
However, when monitoring closely
_stringifyCallback
could be mangled, but is not, and also_prepare
could be mangled, since it is not exported from the main entry point. Is there a way to achieve at least one of the mangling?The following mangle.json did not change anything (I tested a lot):