-
Notifications
You must be signed in to change notification settings - Fork 4
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
Does this work with sveltekit? #1
Comments
I'll leave some notes here as I work through the experiment. We could provide an option to specify the location to the |
I seem to be able to inject the import map this way: src/app.html
hooks.server.ts
|
This is mounting a test component (so far, without styles). routes/(app)/queries/+page.ts
routes/(app)/queries/init.js
routes/(app)/queries/+page.svelte
|
Hello, David. Funny that you mention Sveltekit. I originally started wanting to use it for my ultimate goal at work. I desisted quickly because of two issues, but I cannot tell you that they are unsurpassable, so don't be discouraged. They might not even be related to this topic. I stopped because:
I know! Both issues are exclusive: Do you want a static site or do you want an SSR site? Make up your mind, ha! Because I was just starting experimentation, I quickly turned my eyes to using a Svelte project created with |
BTW, the SSR issue has an easy fix. I just don't know where I put that. It was an IF statement around the application registration call(s) to avoid double registration. |
Please make a separate issue for each problem, so we can properly track them. I have created two out of your coments. Thanks! |
Hey WebJose, sorry for the delay, I'm just getting back to this now. Cool, thank you for the additional context! I'll see what I can figure out! |
Good news! I think I know now how to support SvelteKit, at least for root config projects. For MFE projects, I don't know if work is actually needed, to be honest. Maybe it works as-is? Will test whenever I have some time. |
Thanks for your work on this plugin.
I'm using Vite + Sveltekit, and I'm thinking of disabling SSR for a single route, and then using single-spa/import-map to dynamically mount component(s) to the page. In essence, this route will use a micro-frontend, while the others will be handled by Sveltekit.
I will try it out using your plugin; however, do you foresee any issues?
Thank you!
The text was updated successfully, but these errors were encountered: