perliedman / geojson-path-finder

Find shortest path through a network of GeoJSON
https://www.liedman.net/geojson-path-finder/
ISC License
300 stars 86 forks source link

Fixed turf/explode and tinyqueue .default Problem with webpack #60

Closed iowahc closed 1 year ago

iowahc commented 4 years ago

Just added a check if the required "function" is really a function or an export Object (in Webpack)

nickw1 commented 1 year ago

@perliedman sorry for the message, could this be merged into master if possible if you have a moment? It works well for me and I see that @NenadStanojkovic has approved it. Thanks.

perliedman commented 1 year ago

I hope this one is resolved in 2.0 since the library has been rewritten to use ESM. My understanding is that this issue stems from how webpack (mis)handles CJS libraries which depend on ESM libraries.

nickw1 commented 1 year ago

Thanks, will try out 2.0.1 (2.0.1 not 2.0.0 because it has the phantom nodes fix).

nickw1 commented 1 year ago

For me 2.0.1 is working though I need #84 for my use case.

I guess this can be closed now.