javascript - d3-geo-projection es6 imports -
i've started using es6 imports in projects , id import d3-geo-projection in such way can call projections have, in:
var proj = d3.geoaitoff();
and i'd avoid rolling own bundle.
i have tried
import * d3 'd3'; import 'd3-geo-projection';
and tried
import * d3 'd3'; import {geoaitoff} 'd3-geo-projection';
neither results in being able call var proj = d3.geoaitoff()
;
can advise on how should done?
Comments
Post a Comment