yaph / d3-geomap

A library for creating geographical maps based on D3.js
https://d3-geomap.github.io/
MIT License
133 stars 45 forks source link

No default jsDelivr CDN file set #44

Closed szafirov closed 5 years ago

szafirov commented 6 years ago

This package doesn't have a default file set. You can set it via jsdelivr, browser, or main field in package.json

szafirov commented 6 years ago

Would like to use the library by importing it as: import chloropleth from 'd3-geomap'

yaph commented 6 years ago

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?

szafirov commented 6 years ago

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.

yaph commented 5 years ago

I hope this finally works as expected in version 3.0.0, which I just released.