mapbox / pbf

A low-level, lightweight protocol buffers implementation in JavaScript.
BSD 3-Clause "New" or "Revised" License
796 stars 106 forks source link

--module flag output module instead of self things #97

Closed gertcuykens closed 2 months ago

gertcuykens commented 5 years ago

Can we have a ES module versionimport pbf from 'https://unpkg.com/pbf@3.2.0/dist/pbf.mjs?module' please and a proto compiler --module flag that can output a module instead of a self thing. Life is to short to wait for a stable nodejs mjs release :)

Was hoping a bit of CI magic can generate a extra dist mjs automatically

Thanks

mourner commented 5 years ago

Yes, definitely in the plans!