Skip to content

Commit 291830f

Browse files
feat(create-vite): update to svelte 5 (#18407)
Co-authored-by: Ben McCann <[email protected]>
1 parent ac1fd41 commit 291830f

File tree

15 files changed

+21
-21
lines changed

15 files changed

+21
-21
lines changed

packages/create-vite/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ const FRAMEWORKS: Framework[] = [
205205
name: 'custom-svelte-kit',
206206
display: 'SvelteKit ↗',
207207
color: red,
208-
customCommand: 'npm create svelte@latest TARGET_DIR',
208+
customCommand: 'npm exec sv create TARGET_DIR',
209209
},
210210
],
211211
},
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { render } from 'preact'
2-
import { App } from './app.tsx'
32
import './index.css'
3+
import { App } from './app.tsx'
44

55
render(<App />, document.getElementById('app')!)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { render } from 'preact'
2-
import { App } from './app.jsx'
32
import './index.css'
3+
import { App } from './app.jsx'
44

55
render(<App />, document.getElementById('app'))
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import '@builder.io/qwik/qwikloader.js'
22

33
import { render } from '@builder.io/qwik'
4-
import { App } from './app.tsx'
54
import './index.css'
5+
import { App } from './app.tsx'
66

77
render(document.getElementById('app') as HTMLElement, <App />)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import '@builder.io/qwik/qwikloader.js'
22

33
import { render } from '@builder.io/qwik'
4-
import { App } from './app.jsx'
54
import './index.css'
5+
import { App } from './app.jsx'
66

77
render(document.getElementById('app'), <App />)

packages/create-vite/template-react-ts/src/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { StrictMode } from 'react'
22
import { createRoot } from 'react-dom/client'
3-
import App from './App.tsx'
43
import './index.css'
4+
import App from './App.tsx'
55

66
createRoot(document.getElementById('root')!).render(
77
<StrictMode>

packages/create-vite/template-react/src/main.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { StrictMode } from 'react'
22
import { createRoot } from 'react-dom/client'
3-
import App from './App.jsx'
43
import './index.css'
4+
import App from './App.jsx'
55

66
createRoot(document.getElementById('root')).render(
77
<StrictMode>

packages/create-vite/template-solid-ts/src/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
/* @refresh reload */
22
import { render } from 'solid-js/web'
3-
43
import './index.css'
5-
import App from './App'
4+
import App from './App.tsx'
65

76
const root = document.getElementById('root')
87

packages/create-vite/template-solid/src/index.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
/* @refresh reload */
22
import { render } from 'solid-js/web'
3-
43
import './index.css'
5-
import App from './App'
4+
import App from './App.jsx'
65

76
const root = document.getElementById('root')
87

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"check": "svelte-check --tsconfig ./tsconfig.json && tsc -p tsconfig.node.json"
1111
},
1212
"devDependencies": {
13-
"@sveltejs/vite-plugin-svelte": "^3.1.2",
13+
"@sveltejs/vite-plugin-svelte": "^4.0.0",
1414
"@tsconfig/svelte": "^5.0.4",
15-
"svelte": "^4.2.19",
15+
"svelte": "^5.0.3",
1616
"svelte-check": "^4.0.5",
1717
"tslib": "^2.8.0",
1818
"typescript": "~5.6.2",

0 commit comments

Comments
 (0)