Nowadays, you cant type something like
and it works straightaway without needing to
require('d3') first, since d3 is lazily loaded. I’m still in the habit of doing something like
d3 = require('d3-selection@2)
first, since I often use just a little bit of D3. I’m curious, though, is this even necessary? That is, are only the modules that are actually used loaded? Or is all of D3 loaded?
Even if only a small bit is loaded, I would think there could still be trouble with version pinning.