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

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -