marmelab/EventDrops

index.js is not in published output on npm

Closed this issue · 6 comments

index.js is not in published output on npm
djhi commented

Should be fixed in last alpha. However, we're struggling with webpack currently: event-drops is including d3 and it shouldn't.

djhi commented

Fixed by #161
Published under 0.3.1-alpha4

would dependency injection be an option? -> function eventDrops(d3, config = {}) {

djhi commented

Are you asking because you import d3 through webpack ?

ya did webpack externals solve the problem?

djhi commented

You can use the ProvidePlugin:

new webpack.ProvidePlugin({
    d3: 'd3',
})

And in your code, import d3 like this:

import * as d3 from 'd3';

That's how we solved this currently.