Skip to content

Conversation

@mbostock
Copy link
Member

@mbostock mbostock commented Nov 18, 2025

Ref. d3/d3#4043

@Fil
Copy link
Member

Fil commented Nov 18, 2025

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

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

@mbostock
Copy link
Member Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants