Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider making Snowpack V2 the recommended way to develop Svelte apps #4898

Closed
jamesopstad opened this issue May 25, 2020 · 5 comments
Closed
Labels
awaiting submitter needs a reproduction, or clarification meta temp-stale

Comments

@jamesopstad
Copy link

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.

@antony
Copy link
Member

antony commented May 25, 2020

@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.

@benmccann
Copy link
Member

benmccann commented May 29, 2020

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 sveltejs/sapper#1204 (comment)

There's also some investigation of nollup happening

@TheComputerM
Copy link

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

@stale
Copy link

stale bot commented Jun 26, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale-bot label Jun 26, 2021
@stale stale bot removed the stale-bot label Jun 26, 2021
@benmccann
Copy link
Member

SvelteKit is now the official way to build Svelte apps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting submitter needs a reproduction, or clarification meta temp-stale
Projects
None yet
Development

No branches or pull requests

6 participants