From 2a558efd2fa7de6c8c91b2bda2a0dea9de6658ae Mon Sep 17 00:00:00 2001 From: Dominik G Date: Fri, 9 Dec 2022 11:36:41 +0100 Subject: [PATCH] feat(svelte)!: update svelte templates to vite-plugin-svelte 2.0.0 (#11279) --- packages/create-vite/template-svelte-ts/package.json | 5 ++--- packages/create-vite/template-svelte-ts/svelte.config.js | 6 +++--- packages/create-vite/template-svelte/package.json | 4 ++-- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/packages/create-vite/template-svelte-ts/package.json b/packages/create-vite/template-svelte-ts/package.json index e1001b453347d9..5dd1b7d5bd5434 100644 --- a/packages/create-vite/template-svelte-ts/package.json +++ b/packages/create-vite/template-svelte-ts/package.json @@ -10,11 +10,10 @@ "check": "svelte-check --tsconfig ./tsconfig.json" }, "devDependencies": { - "@sveltejs/vite-plugin-svelte": "^2.0.0-beta.0", + "@sveltejs/vite-plugin-svelte": "^2.0.0", "@tsconfig/svelte": "^3.0.0", - "svelte": "^3.53.1", + "svelte": "^3.54.0", "svelte-check": "^2.10.0", - "svelte-preprocess": "^4.10.7", "tslib": "^2.4.1", "typescript": "^4.9.3", "vite": "^4.0.0" diff --git a/packages/create-vite/template-svelte-ts/svelte.config.js b/packages/create-vite/template-svelte-ts/svelte.config.js index aa911a709460bf..b0683fd24d70ab 100644 --- a/packages/create-vite/template-svelte-ts/svelte.config.js +++ b/packages/create-vite/template-svelte-ts/svelte.config.js @@ -1,7 +1,7 @@ -import sveltePreprocess from 'svelte-preprocess' +import { vitePreprocess } from '@sveltejs/vite-plugin-svelte' export default { - // Consult https://github.com/sveltejs/svelte-preprocess + // Consult https://svelte.dev/docs#compile-time-svelte-preprocess // for more information about preprocessors - preprocess: sveltePreprocess(), + preprocess: vitePreprocess(), } diff --git a/packages/create-vite/template-svelte/package.json b/packages/create-vite/template-svelte/package.json index e2b6ba90d097bd..21561015b59139 100644 --- a/packages/create-vite/template-svelte/package.json +++ b/packages/create-vite/template-svelte/package.json @@ -9,8 +9,8 @@ "preview": "vite preview" }, "devDependencies": { - "@sveltejs/vite-plugin-svelte": "^2.0.0-beta.0", - "svelte": "^3.53.1", + "@sveltejs/vite-plugin-svelte": "^2.0.0", + "svelte": "^3.54.0", "vite": "^4.0.0" } }