d3 / d3-shape

Graphical primitives for visualization, such as lines and areas.
https://d3js.org/d3-shape
ISC License
2.47k stars 305 forks source link

Added support ESM and commonjs #122

Closed retyui closed 6 years ago

retyui commented 6 years ago

https://github.com/d3/d3-shape/issues/121

mbostock commented 6 years ago

This module already supports ESM (the module entry point) and CommonJS (the main entry point) using Rollup. It’s unclear to me what you are trying to achieve by switching to Babel.

retyui commented 6 years ago

@mbostock As you do not understand, I do not need all the js bundle in the project, and since the tree-shaking does not work. I'm trying to create a separate folder with CommonJS files. And third-party libraries that use only part of the function D3 bring the project a lot of dead code