Klortho / d3-flextree

Flexible tree layout algorithm that allows for variable node sizes
https://klortho.github.io/d3-flextree/
Do What The F*ck You Want To Public License
320 stars 46 forks source link

[React] Cannot minify package. #10

Open Pruxis opened 6 years ago

Pruxis commented 6 years ago

When utilise CRA / Webpack in my project I am not able to compile it properly.

Everything works fine with my React build and this package is amazing, but I am forced now to utilise d3-flextree-v4 because that package has been exported as an es5 module

Documentation about CRA error. https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#npm-run-build-fails-to-minify

@Klortho By the way I cannot express how grateful I am for this javascript port this opens so much UX/UI possibilities.

qiaoyixuan commented 5 years ago

My code: import { flextree } from 'd3-flextree/build/d3-flextree' It works