fulup-bzh / GeoGate

GeoGate is an opensource tracking GPS/AIS framework to implement GTS applications.
Apache License 2.0
75 stars 39 forks source link

feature: support use in browser environment #53

Closed tkurki closed 10 months ago

tkurki commented 10 months ago

Guard reference to process global with typeof check so that this library can be used in browser environment with bundlers like Webpack.

afischerdev commented 10 months ago

I haven't worked with Webpack yet. But I tested the changes and they have no effect on my tests and results.

tkurki commented 10 months ago

👍 I was able to use @signalk/nmea0183-signalk that uses ggencoder with Webpack in browser with these changes (prior to issuing the PR).