grafana / sobek

MIT License
122 stars 1 forks source link

Es module usage #49

Open nickchomey opened 3 hours ago

nickchomey commented 3 hours ago

Sobek seems extremely promising, but I have one main question about the es module support.

The Readme says

Also of note is that due to the nature of ESM you need to have an event loop implementation to use it. That is still not provided by Sobek and likely never will be.

Does this mean we can't just swap Sobek for Goja in order to use ES modules in a Go app?

Similarly, does it mean that k6 has implemented a particular event loop to allow for this? Could k6 be used within a Go app, rather than just Sobek, to allow for es module support?

Thanks!