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

Upgrade Svelte version to v4 #194

Closed
willdhorn opened this issue Jun 27, 2024 · 4 comments · Fixed by #200
Closed

Upgrade Svelte version to v4 #194

willdhorn opened this issue Jun 27, 2024 · 4 comments · Fixed by #200
Labels
enhancement New feature or request

Comments

@willdhorn
Copy link

Currently, svelte projects are initialized using v3.55.1, despite v4 having been released last year

@willdhorn willdhorn added the enhancement New feature or request label Jun 27, 2024
@willdhorn
Copy link
Author

This is the diff of running npx svelte-migrate@latest svelte-4 (as per the migration guide)

   "devDependencies": {
-    "@sveltejs/vite-plugin-svelte": "^2.0.3",
+    "@sveltejs/vite-plugin-svelte": "^2.4.1",
     "@tsconfig/svelte": "^3.0.0",
     "@types/webextension-polyfill": "^0.10.0",
-    "svelte": "^3.55.1",
-    "svelte-check": "^2.10.3",
+    "svelte": "^4.0.0",
+    "svelte-check": "^3.4.3",
     "tslib": "^2.5.0",
     "typescript": "^5.3.2",
     "vite": "^4.0.0",
     "vite-plugin-web-extension": "^4.0.0",
     "webextension-polyfill": "^0.10.0"
   }

@nileshtrivedi
Copy link
Contributor

+1

I created a new web extension project and was surprised that it was configured with Svelte 3.55 and Vite 4.0.

@nileshtrivedi
Copy link
Contributor

I submitted a PR #200 for this. Please let me know if any other changes are needed to make this complete and ready to merge.

@aklinker1
Copy link
Owner

Nope, just getting the updated code to the main branch will make it available in the starter kit immediately! Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants