3 ms·
Svelte does it in the compilation phase without shadow DOM. I understand that precompiling is an extra step, but the React codebases that use shadow DOM are do
by xiphias2 4y ago
Svelte does it in the compilation phase without shadow DOM.
I understand that precompiling is an extra step, but the React codebases that use shadow DOM are doing precompiling anyways (tsx), in which case it doesn't make sense anymore.
- benatkin 4y agoNot a fan of all this prefixing even if it works most of the time, it's a kludge IMO. The state of code distribution in js is pretty sad IMO. Most es modules are faked. I would like the opposite of Vite where the real es modules are in production. Modules aren't just treated like a toy in other languages. :(
- xiphias2 4y agoPrefixing should be web components instead probably (for some reason Svelte doesn't default to it, but there should be a push to make it work). About Vite: I agree, it's not how it should be done. Svelte components should be compiled to real modules with real, easy to understand paths. I would love to use a system that actually I understand, and just compile things to module imports. We could hack it together maybe, it's HackerNews anyways :)