Open ralyodio opened 2 years ago
I am trying to use the matrix-js-sdk package in sveltekit and it requires events (but need to run in the browser).
matrix-js-sdk
Is there a way I can import this module using vite (the svelte build tool) so that it exposes events api to browsers?
I'm guessing this won't work in Vite because it's not an es module yet. Is anyone working on converting it? At first glance, it doesn't look too crazy to convert.
@jamsea @ralyodio Hello, you can use the simplified version i coded for minimal usage: Issues/91
I am trying to use the
matrix-js-sdk
package in sveltekit and it requires events (but need to run in the browser).Is there a way I can import this module using vite (the svelte build tool) so that it exposes events api to browsers?