'Is there a way to gradually migrate to Svelte?

Help me to release the parking brake :)

I have several apps builded in the classic way when backend generated HTML and user interaction added with jQuery and plain JS. Now I want to migrate to Svelte.

I planned to rewrite the logic into components and add this as custom elements one by one but I have not found the way to stylize custom element by external styles. As far as I understand this limitation is due to the use of the Shadow DOM so that styles don't leak into other components.

OK, it's reasonably but there is a way to gradually migrate to Svelte without extracting for each component but uses external styles from legacy build?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source