steep-balloon-41261
05/20/2023, 4:04 AMmagnificent-art-43333
05/20/2023, 4:38 AMprehistoric-ocean-34446
05/22/2023, 1:16 AMimportmap
to get the import
functionality working. In particular, for livekit-client
package import from `npm`:
<script type="importmap">
{ "imports": {
"livekit-client": "<https://ga.jspm.io/npm:livekit-client@1.9.6/dist/livekit-client.esm.mjs>"
} }
</script>
Once this is established, I could then define <script type="module"></script>
and finally within this script block the import
functionality works. Hope this helps out anyone who might be stuck with vanilla JS for platform compatibility reasons. Though having a Livekit JS variable that could be accessed directly would ideally be easier.polite-kilobyte-67570
05/22/2023, 7:27 AMumd
version of livekit client, you can access it with window.LivekitClient
directly in the browser. Hope that helps.
You can also load it directly in a script tag from unpackage from <https://www.unpkg.com/livekit-client@1.9.6>