Not sure if this a bug with this package or some underlying dependency like rollup. The following module...
export*from'd3-drag'export*from'd3-zoom'export*from'd3-force'export*from'd3-brush'export*from'd3-selection'
gets compiled to the following output in v0.12.0-next.8...
import{forceCollideasu,forceManyBodyasa,forceXasl,forceYasf,forceSimulationash,forceLinkasd,selectasv,eventasp,zoomasy,zoomIdentityasm,dragasb,brushasg}from"d3-drag";import"d3-zoom";import"d3-force";import"d3-brush";import"d3-selection";I think the issue is related to tree shaking. The partial imports like forceCollide aren't even a part of d3-drag. Looks like it's just treating the first export * from ... as the main module. I think I can work around this by using partial imports within each module but the syntax I'm using is valid.
Not sure if this a bug with this package or some underlying dependency like
rollup. The following module...gets compiled to the following output in v0.12.0-next.8...
I think the issue is related to tree shaking. The partial
imports likeforceCollidearen't even a part ofd3-drag. Looks like it's just treating the firstexport * from ...as the main module. I think I can work around this by using partial imports within each module but the syntax I'm using is valid.