Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ralyodio opened this issue Mar 19, 2022 · 2 comments
Open

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

ralyodio opened this issue Mar 19, 2022 · 2 comments

Comments

@ralyodio
Copy link

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
Copy link

jamsea commented Jul 11, 2022

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
Copy link

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

LukasBudach added a commit to LukasBudach/jimp that referenced this issue Jun 11, 2024
The events library does not support the es module type yet, making this import format change necessary browserify/events#86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants