Closed szafirov closed 5 years ago
Would like to use the library by importing it as:
import chloropleth from 'd3-geomap'
I'm not familiar with all the options you have with regards to JS packages and content delivery networks, What file would I need to set as main
and would this by itself allow the library to be imported the way you intend?
The only way I know would be to do: export default class Choropleth extends Geomap
, https://developer.mozilla.org/en-US/docs/web/javascript/reference/statements/export. I am not sure if that is backward compatible with pre ES6 js though.
I hope this finally works as expected in version 3.0.0, which I just released.
This package doesn't have a default file set. You can set it via
jsdelivr
,browser
, ormain
field inpackage.json