ThreadSky
About ThreadSky
Log In
mootoday.com
•
5 days ago
No Svelte required.
Comments
Log in
with your Bluesky account to leave a comment
[–]
reinhold.is
•
5 days ago
Ah cool. Then I'm interested in hearing more about "Another Svelte package depends on that and generates a web component."
1
1
reply
[–]
mootoday.com
•
5 days ago
This is the monorepo structure for the various widgets we provide.
Actually, let me add you as a contributor to the private repo.
1
1
reply
[–]
mootoday.com
•
5 days ago
Wait what... GitHub says I need to purchase another seat :D. One sec
1
1
reply
[–]
mootoday.com
•
5 days ago
Ok, I made the repo public.
https://github.com/LoopbackApp/widgets/tree/main/packages/widget-custom-element
1
1
reply
[–]
mootoday.com
•
5 days ago
https://github.com/LoopbackApp/widgets/blob/main/packages/widget-custom-element/src/lib/custom-element.svelte
That's the Svelte component that creates the custom element. Definitely reply here or DM me if you have questions.
Also happy to screen share if that's more convenient.
3
1
reply
[–]
reinhold.is
•
5 days ago
So you're just using Vite's library mode to compile the Svelte component?
https://github.com/LoopbackApp/widgets/blob/main/packages%2Fwidget-custom-element%2Fvite.config.ts
And consumers can import the JS, and nothing else?
Why iife? 🤔
1
1
reply
Posting Rules
Be respectful to others
No spam or self-promotion
Stay on topic
Follow Bluesky's terms of service
×
Reply
Post Reply
Comments
Actually, let me add you as a contributor to the private repo.
https://github.com/LoopbackApp/widgets/tree/main/packages/widget-custom-element
That's the Svelte component that creates the custom element. Definitely reply here or DM me if you have questions.
Also happy to screen share if that's more convenient.
https://github.com/LoopbackApp/widgets/blob/main/packages%2Fwidget-custom-element%2Fvite.config.ts
And consumers can import the JS, and nothing else?
Why iife? 🤔