d3-format
d3-format copied to clipboard
unicode escapes
Ref. https://github.com/d3/d3/issues/4043
Interestingly when I test this, the minification reinstates the unescaped higher-plane utf-8 characters:
grep -o "[^ -~]" dist/d3-format.min.js
µ
−
Oh, that’s fascinating. So we do have to set ascii_only: true whenever we use Terser? I guess it seems surprising that Terser would choose the “wrong” default… shouldn’t we just let Terser do whatever it thinks is best?