score:1

Accepted answer

If you should want to use ES6 import, the syntax that worked for me was

import * as d3 from 'd3';
import { lasso } from 'd3-lasso';
d3.lasso = lasso;

Related Query

More Query from same tag