Svelte: Consider making Snowpack V2 the recommended way to develop Svelte apps

Created on 25 May 2020  路  3Comments  路  Source: sveltejs/svelte

Is your feature request related to a problem? Please describe.
The current recommended approach (using degit) doesn't seem as straightforward as getting started with other frameworks. To a beginner, it may not be obvious that they need to run npm install in the newly created project folder. Development can soon become slow because each change triggers a complete rebuild.

Describe the solution you'd like
Snowpack V2 (https://www.snowpack.dev/) is due to be released tomorrow. It has great support for Svelte and you can generate a new project by running npx create-snowpack-app [NEW_DIR] --template @snowpack/app-template-svelte. I've been using it and following changes over the past few weeks. Some good enhancements have been made including support for svelte specific config via svelte.config.js to add preprocessing etc. Parcel has been removed as the default bundler and it is now possible to add your own bundler plugin.

Describe alternatives you've considered
Have looked into Vite but it doesn't support Svelte at present.

How important is this feature to you?
I'm already using Snowpack so it won't make a difference to me directly but I feel it could benefit Svelte users more generally. The developer seems very open to adding any features that improve the experience for Svelte users.

meta pending clarification

Most helpful comment

@jamesopstad it's certainly something we're looking at. I think it would be good to get Sapper working with Snowpack as well before we make any big decisions.

All 3 comments

@jamesopstad it's certainly something we're looking at. I think it would be good to get Sapper working with Snowpack as well before we make any big decisions.

Here's some related discussion in the Sapper issue tracker

It looks like Snowpack now supports webpack as a bundler. I don't see support for Rollup, which might be a blocker - though it sounds like it's being worked on https://github.com/sveltejs/sapper/issues/1204#issuecomment-633303440

There's also some investigation of nollup happening

Well snowpack now officially supports svelte, https://www.npmjs.com/package/@snowpack/plugin-svelte, time to make the same happen for sapper.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sskyy picture sskyy  路  3Comments

plumpNation picture plumpNation  路  3Comments

matt3224 picture matt3224  路  3Comments

ricardobeat picture ricardobeat  路  3Comments

bestguy picture bestguy  路  3Comments