I'm experimenting with the alpha of d3 v4.0, and attempting to create a custom build, within a jspm setup. I can't seem to get my head around how the new modular build is intended to work.
If I want to import a named export from a module, ie json from d3-request, I can do the following:
import {json} from "d3-request";
after having installed the module via jspm/npm.
If I want to install the whole library, likewise import d3 from "d3";
If I want to install multiple modules and named exports and have them all available to me under the d3 namespace (ie, importing d3-shape alongside d3-request, and having access to d3.json and d3.line in the same d3 global), what is the correct syntax for this?
I realise that when using standalone versions of these modules globals such as d3_shape
are exported. Is this the intention, to have separate namespaces for each module when bundling these modules with my application?