Skip to content

Commit 2a558ef

Browse files
authored
feat(svelte)!: update svelte templates to vite-plugin-svelte 2.0.0 (#11279)
1 parent 026f41e commit 2a558ef

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

packages/create-vite/template-svelte-ts/package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@
1010
"check": "svelte-check --tsconfig ./tsconfig.json"
1111
},
1212
"devDependencies": {
13-
"@sveltejs/vite-plugin-svelte": "^2.0.0-beta.0",
13+
"@sveltejs/vite-plugin-svelte": "^2.0.0",
1414
"@tsconfig/svelte": "^3.0.0",
15-
"svelte": "^3.53.1",
15+
"svelte": "^3.54.0",
1616
"svelte-check": "^2.10.0",
17-
"svelte-preprocess": "^4.10.7",
1817
"tslib": "^2.4.1",
1918
"typescript": "^4.9.3",
2019
"vite": "^4.0.0"
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import sveltePreprocess from 'svelte-preprocess'
1+
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'
22

33
export default {
4-
// Consult https://github.com/sveltejs/svelte-preprocess
4+
// Consult https://svelte.dev/docs#compile-time-svelte-preprocess
55
// for more information about preprocessors
6-
preprocess: sveltePreprocess(),
6+
preprocess: vitePreprocess(),
77
}

packages/create-vite/template-svelte/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"preview": "vite preview"
1010
},
1111
"devDependencies": {
12-
"@sveltejs/vite-plugin-svelte": "^2.0.0-beta.0",
13-
"svelte": "^3.53.1",
12+
"@sveltejs/vite-plugin-svelte": "^2.0.0",
13+
"svelte": "^3.54.0",
1414
"vite": "^4.0.0"
1515
}
1616
}

0 commit comments

Comments
 (0)