dominikg / svite

svelte integration for vite
MIT License
372 stars 21 forks source link

reevaluate svite in context of svelte announcement #77

Closed dominikg closed 3 years ago

dominikg commented 4 years ago

Please note that with the latest announcement ( https://www.youtube.com/watch?v=qSfdtmcZ4d0 ) there are a few things i have to figure out for svite and its future.

I'll be updating this post as i go, expect svite 0.8.0 to be the latest release for a while.

dominikg commented 4 years ago

Lets put some obvious things here

1) unclear upstream situation activity in vite has dropped significantly - if or when it becomes more active again, focus is likely going to be on vue3 and not generalization for other frameworks

2) major svite features will be available in svelte kit

3) interest in svite has been underwhelming after sveltesummit

Questions that arise

A) is forking vite an option? Drop all vue and react stuff, put in svelte as first class citizen. (would significantly reduce work for css only hmr for example)

B) What are future plans for vite?

C) Is there still room for svite in the svelte ecosystem. Which features would be helpful that are not provided by svelte-kit?

D) Is the result of the above enough to generate more interest

E) What are the alternatives if the above does not lead to a result where svite development continues

quantuminformation commented 4 years ago

Any links to this svelte kit?

dominikg commented 4 years ago

You can test it with npm init svelte@next in an empty directory, the source code is not public and it's not finished so don't expect anything to work or be in its final form.

dominikg commented 4 years ago

Updates

unclear upstream situation activity in vite has dropped significantly - if or when it becomes more active again, focus is likely going to be on vue3 and not generalization for other frameworks

Evan You started doing releases and merges again, including outstanding issues that hindered svite. :fireworks: Still needs to be seen where focus is going to be

A) is forking vite an option? Drop all vue and react stuff, put in svelte as first class citizen. (would significantly reduce work for css only hmr for example)

a soft tracking fork would be too much work while vite is under heavy development, a hard fork before a stable vite 1.0 would also create a lot of fixing/maintaining overhead => no, forking is not an option right now

C) Is there still room for svite in the svelte ecosystem. Which features would be helpful that are not provided by svelte-kit?

E) What are the alternatives if the above does not lead to a result where svite development continues

codechips commented 4 years ago

That would be a shame as I like svite very much

aral commented 3 years ago

As you mentioned also, it doesn’t look like SvelteKit will support routify/SPAs. That would be a major use case for svite for folks who need SPAs. Would it make sense to focus on svite + routify as the “svelte kit” for SPAs?

aral commented 3 years ago

Also, some recent updates on vite: https://github.com/vitejs/vite/issues/1207

dominikg commented 3 years ago

Yes, routify and pure clientside/prerendered SPA is an area where svite can still shine, altough it remains to be seen how much of that ground will be covered by svelte-kit aswell.

The Ideas behind vite 2.0 align with some of my thoughts and seem like great and natural evolution from the transform api that already seemed inspired by rollup. If it turns out the way i think, most of svites internal hacks and workarounds will no longer be needed. :partying_face:

kylecordes commented 3 years ago

Considering the roadmap includes "Move Vue specific logic into its own dedicated plugin (this also gets rid of all Vue-specific config options)", it might really pay off to be patient. Snowpack is great but I think end-of-2020 is too soon to declare a "winner".

dominikg commented 3 years ago

Just a quick update. vite 2 is in beta now and it looks very promising. I'm curious about how it works and so i'm intending to rebuild svite on top of vite2.

Some things to keep in mind: 1) this is an intention, not promising results 2) this is not an attempt to compete with svelte-kit or in any way negative towards it. I'm looking forward to it. 3) my spare time is limited, again no promises.

codechips commented 3 years ago

Sounds like sweet music to my ears :heart_eyes:

benmccann commented 3 years ago

It is planned for SvelteKit to have support for SPA-mode / ability to toggle on-and-off client-side rendering or SSR

A couple things I wonder about - what's missing in svite in terms of SSR support? Are all preprocessors supported? Why does TypeScript need a special flag / special support?

dominikg commented 3 years ago

working ssr support does not exist in svite, thanks for updating the docs on that.

preprocessors are supported via regular svelte config / rollup-plugin-svelte.

ts flag is currently only a safeguard to ensure a ts preprocessor exists, peviously it supplied a ts preprocessor automatically.

techniq commented 3 years ago

@dominikg I just saw SvelteKit just switched to Vite in the latest release 1.0.0-next.35 and uses a new @sveltejs/vite-plugin-svelte package.

dominikg commented 3 years ago

I'm aware, thx

techniq commented 3 years ago

@dominikg I was curious if you had a hand in it... :)

dominikg commented 3 years ago

svite 0.9 beta has started, see https://github.com/dominikg/svite#svite-08-is-discontinued-this-repository-is-not-going-to-receive-updates

@svitejs/vite-plugin-svelte is currently used by sveltekit and it is going to be moved into the svelte org. Once that process is done, svite and kit will both be using the same @sveltejs/vite-plugin-svelte.This is mostly a logistics issue at this point and implementation work on vite-plugin-svelte itself should be largely unaffected by its name and repository location.

time will tell if svite has enough to offer to stand on its own besides kit, but i'm sure some are going to like its simplicity (the minimal template is still very minimal), and work on the new windicss template and automatic vite preprocessors could prove to be a nice thing aswell. :partying_face:

VaelVictus commented 3 years ago

Awesome work, thank you! As someone who works with PHP + Svelte, I appreciate your efforts on Svite.

quantuminformation commented 3 years ago

well done mate to get official!

codechips commented 3 years ago

Just curious. What will Svite provide over Vite 2.0? With 2.0 it's really easy to get a Svelte project going now that there is official support for Rollup plugins and other things like PostCSS and SASS work out of the box. What's Svite's master plan @dominikg?

dominikg commented 3 years ago

I'm not sure what the future holds for svite itself. The least it can continue to offer are starters/templates.

sveltekit uses vite under the hood, but there will be usecases for svelte and vite2 that kit does not cover well. This is where svite can offer benefits/solutions/alternatives. But unlike svite 0.8 which wrapped around vite out of neccessity to make things work, it will be purely focussed on extra functionality and ease of use. Also the new monorepo has a playground where i can experiment a lot, and maybe one or two of those experiments will show up somewhere some day ;)

dominikg commented 3 years ago

time to close up shop here, see https://github.com/dominikg/svite#svite-08-is-discontinued-this-repository-is-not-going-to-receive-updates

if anything new happens with svite it will be over at https://github.com/svitejs/svite