neptunejs / d3-flextree-v4

MIT License
10 stars 1 forks source link

Fix requiring files with ES2015 imports in node #3

Closed jacobp100 closed 6 years ago

jacobp100 commented 7 years ago

The file d3-hierarchy/src/hierarchy/index has ES2015 imports, which means it doesn't play well when importing into NodeJS. We can alternatively get the Node constructor from hierarchy's prototype.

ebbe-brandstrup commented 6 years ago

This PR is required for my use case of the flextree-v4 plugin as well (an angular client in a meteor project).