browserify / events

Node's event emitter for all engines.
MIT License
1.38k stars 173 forks source link

how do I load this with vite/sveltekit? #86

Open ralyodio opened 2 years ago

ralyodio commented 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).

Is there a way I can import this module using vite (the svelte build tool) so that it exposes events api to browsers?

jamsea commented 2 years ago

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.

Sylicium commented 1 year ago

@jamsea @ralyodio Hello, you can use the simplified version i coded for minimal usage: Issues/91