d3 / d3-delaunay

Compute the Voronoi diagram of a set of two-dimensional points.
https://d3js.org/d3-delaunay
ISC License
611 stars 57 forks source link

Production build includes new ECMAScript features. #52

Closed SokichiFujita closed 5 years ago

SokichiFujita commented 5 years ago

Because of d3-delaunay uses a lot of ECMAScript new and experimental feature (e.g. class, exponential operator) for production build, it causes issues for production use.

Do you have a plan to use transpiler like babel to build a production module?

mbostock commented 5 years ago

I do not, sorry!

SokichiFujita commented 5 years ago

Got it. Thanks. I consider another plan.

echap commented 5 years ago

Hello, I know you do not intend to transpile this plugin, but I just want to add a thumb up on the interest of doing it. Indeed this makes this awesome tool unavailable using react native // common js based stuff.

mourner commented 5 years ago

Note that it also depends on generators, so transpiling it would probably make a part of the functionality a lot slower.