Skip to content
This repository has been archived by the owner on Jul 29, 2023. It is now read-only.

Webpack bundling #7

Open
ekiwi111 opened this issue Mar 20, 2018 · 1 comment
Open

Webpack bundling #7

ekiwi111 opened this issue Mar 20, 2018 · 1 comment

Comments

@ekiwi111
Copy link

ekiwi111 commented Mar 20, 2018

Is there a way to bundle this plugin with d3 using Webpack?

I found a way to import some of the functions through:

import * as d3base from 'd3';
import { getSize, resolution, selectCanvas } from 'd3-canvas-transition';

const d3 = Object.assign(d3base, { getSize, resolution, selectCanvas });

But some can't be imported, because they applied to selection.prototype directly.

And I keep getting an error in the console ....attr(...).canvasResolution is not a function

@PhilTheAir
Copy link

Anyone can help out?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants