patricknelson

patricknelson/svelte-retag

Light DOM custom element wrapper for Svelte 3 and 4 with slots, context and Vite HMR support

1 good first / help-wanted issue · JavaScript · last activity Aug 8, 2025

context custom-elements hmr slots svelte web-components
1 Open Issue Need Help Last updated: Aug 8, 2025

Open Issues Need Help

View All on GitHub
Web Development • UI Libraries/Frameworks

AI Summary: Debug and fix a bug in the `svelte-retag` library where styles within a Svelte component using shadow DOM are not applied correctly in development mode, while working correctly in production. The issue is related to Vite's default behavior of appending styles to `document.head`. The solution likely involves adjusting how styles are injected into the shadow DOM during development to avoid conflicts with Vite.

Complexity: 4/5
bug help wanted shadow dom
patricknelson/svelte-retag
43

Light DOM custom element wrapper for Svelte 3 and 4 with slots, context and Vite HMR support

JavaScript
#context#custom-elements#hmr#slots#svelte#web-components