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

ES6 Standards and 'Could not find declaration file for module geojson-path-finder' #72

Closed N0TARNI3 closed 1 year ago

N0TARNI3 commented 3 years ago

Hi. Would it be okay to integrate ES6 standards for client-side-server browsers that can't recognize the require() function? Also, I can't seem to fix the issue 'Could not find declaration file for module geojson-path-finder'. I'm a beginner at javascript language, I tried to look for solutions but I can't make it work. Hope you can help me on this one. Godspeed!

crizzis commented 2 years ago

Please see provided PR

perliedman commented 1 year ago

Version 2.0.0 uses ESM in the source and should hopefully be possible to use directly from the client side.