d3-format icon indicating copy to clipboard operation
d3-format copied to clipboard

unicode escapes

Open mbostock opened this issue 3 months ago • 2 comments

Ref. https://github.com/d3/d3/issues/4043

mbostock avatar Nov 18 '25 18:11 mbostock

Interestingly when I test this, the minification reinstates the unescaped higher-plane utf-8 characters:

grep -o "[^ -~]" dist/d3-format.min.js
µ
−

Fil avatar Nov 18 '25 19:11 Fil

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?

mbostock avatar Nov 19 '25 01:11 mbostock