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

Provide a Svelte component with vanilla js #74

Open
YummYume opened this issue Apr 9, 2023 · 2 comments
Open

Provide a Svelte component with vanilla js #74

YummYume opened this issue Apr 9, 2023 · 2 comments

Comments

@YummYume
Copy link

YummYume commented Apr 9, 2023

Hello,

Would it be possible to pass a Svelte component while using the vanilla version of this library (importing from the dist folder)?

For clarification, this is an app which can compile Svelte (using Webpack) but that does not use it as a primary source of templating. I would like to pass in a Svelte component for more complex layouts.

I did try very briefly to do that, and it didn't seem to work that well (the browser was throwing some weird errors). So I would like to know if this is a scenario that is even possible and that has been considered before.

@zerodevx
Copy link
Owner

zerodevx commented Apr 9, 2023

That's quite an unusual use-case - I haven't actually tested this tbh. AFAICT, sending a component message only works when developing in a Svelte environment, since Svelte requires to be compiled.

@YummYume
Copy link
Author

YummYume commented Apr 9, 2023

Thanks for your answer.

I also thought that was weird but since I am able to compile Svelte code, I thought that maybe there would be a way to make this work.

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

2 participants