albertorestifo / node-dijkstra

A NodeJS implementation of Dijkstra's algorithm
MIT License
158 stars 36 forks source link

browser support #5

Closed mattdesl closed 8 years ago

mattdesl commented 8 years ago

Since the new version relies on ES6, the module no longer works reliably in the browser or in older versions of Node. Is there any particular reason you decided not to pre-publish ES5 to npm?

albertorestifo commented 8 years ago

I never though about it's possible use in the browser, to be honest.

I sure can release a transpiled distribution, but I don't want it to be the main entry point. I will work on it.

albertorestifo commented 8 years ago

I've added the transpiled and minified versions: https://github.com/albertorestifo/node-dijkstra/tree/master/dist Documentation and publication on NPM and Browserify to come.

Keep in mind you will need the Babel Polyfill in order for the transpiled library to work properly.

albertorestifo commented 8 years ago

I decided against publishing a browser-friendly copy of the library