import * as d3 from "d3-selection"; // or const d3 = require("d3-selection");
import * as d3Drag from "d3-drag";
import * as d3Scale from "d3-scale";
Object.assign(d3, d3Drag, d3Scale);
export default d3; // or module.exports = d3;
// in the helper module
export * from "d3-selection";
export * from "d3-drag";
// in the consuming module
import * as d3 from "helper";