index.js is not in published output on npm
Closed this issue · 6 comments
blugavere commented
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.
blugavere commented
would dependency injection be an option? -> function eventDrops(d3, config = {}) {
djhi commented
Are you asking because you import d3 through webpack ?
blugavere commented
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.