Closed jacobp100 closed 6 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.
d3-hierarchy/src/hierarchy/index
Node
hierarchy
This PR is required for my use case of the flextree-v4 plugin as well (an angular client in a meteor project).
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 theNode
constructor fromhierarchy
's prototype.