File tree 15 files changed +21
-21
lines changed
15 files changed +21
-21
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ const FRAMEWORKS: Framework[] = [
205
205
name : 'custom-svelte-kit' ,
206
206
display : 'SvelteKit ↗' ,
207
207
color : red ,
208
- customCommand : 'npm create svelte@latest TARGET_DIR' ,
208
+ customCommand : 'npm exec sv create TARGET_DIR' ,
209
209
} ,
210
210
] ,
211
211
} ,
Original file line number Diff line number Diff line change 1
1
import { render } from 'preact'
2
- import { App } from './app.tsx'
3
2
import './index.css'
3
+ import { App } from './app.tsx'
4
4
5
5
render ( < App /> , document . getElementById ( 'app' ) ! )
Original file line number Diff line number Diff line change 1
1
import { render } from 'preact'
2
- import { App } from './app.jsx'
3
2
import './index.css'
3
+ import { App } from './app.jsx'
4
4
5
5
render ( < App /> , document . getElementById ( 'app' ) )
Original file line number Diff line number Diff line change 1
1
import '@builder.io/qwik/qwikloader.js'
2
2
3
3
import { render } from '@builder.io/qwik'
4
- import { App } from './app.tsx'
5
4
import './index.css'
5
+ import { App } from './app.tsx'
6
6
7
7
render ( document . getElementById ( 'app' ) as HTMLElement , < App /> )
Original file line number Diff line number Diff line change 1
1
import '@builder.io/qwik/qwikloader.js'
2
2
3
3
import { render } from '@builder.io/qwik'
4
- import { App } from './app.jsx'
5
4
import './index.css'
5
+ import { App } from './app.jsx'
6
6
7
7
render ( document . getElementById ( 'app' ) , < App /> )
Original file line number Diff line number Diff line change 1
1
import { StrictMode } from 'react'
2
2
import { createRoot } from 'react-dom/client'
3
- import App from './App.tsx'
4
3
import './index.css'
4
+ import App from './App.tsx'
5
5
6
6
createRoot ( document . getElementById ( 'root' ) ! ) . render (
7
7
< StrictMode >
Original file line number Diff line number Diff line change 1
1
import { StrictMode } from 'react'
2
2
import { createRoot } from 'react-dom/client'
3
- import App from './App.jsx'
4
3
import './index.css'
4
+ import App from './App.jsx'
5
5
6
6
createRoot ( document . getElementById ( 'root' ) ) . render (
7
7
< StrictMode >
Original file line number Diff line number Diff line change 1
1
/* @refresh reload */
2
2
import { render } from 'solid-js/web'
3
-
4
3
import './index.css'
5
- import App from './App'
4
+ import App from './App.tsx '
6
5
7
6
const root = document . getElementById ( 'root' )
8
7
Original file line number Diff line number Diff line change 1
1
/* @refresh reload */
2
2
import { render } from 'solid-js/web'
3
-
4
3
import './index.css'
5
- import App from './App'
4
+ import App from './App.jsx '
6
5
7
6
const root = document . getElementById ( 'root' )
8
7
Original file line number Diff line number Diff line change 10
10
"check" : " svelte-check --tsconfig ./tsconfig.json && tsc -p tsconfig.node.json"
11
11
},
12
12
"devDependencies" : {
13
- "@sveltejs/vite-plugin-svelte" : " ^3.1.2 " ,
13
+ "@sveltejs/vite-plugin-svelte" : " ^4.0.0 " ,
14
14
"@tsconfig/svelte" : " ^5.0.4" ,
15
- "svelte" : " ^4.2.19 " ,
15
+ "svelte" : " ^5.0.3 " ,
16
16
"svelte-check" : " ^4.0.5" ,
17
17
"tslib" : " ^2.8.0" ,
18
18
"typescript" : " ~5.6.2" ,
Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
- let count: number = 0
2
+ let count: number = $state ( 0 )
3
3
const increment = () => {
4
4
count += 1
5
5
}
6
6
</script >
7
7
8
- <button on:click ={increment }>
8
+ <button onclick ={increment }>
9
9
count is {count }
10
10
</button >
Original file line number Diff line number Diff line change
1
+ import { mount } from 'svelte'
1
2
import './app.css'
2
3
import App from './App.svelte'
3
4
4
- const app = new App ( {
5
+ const app = mount ( App , {
5
6
target : document . getElementById ( 'app' ) ! ,
6
7
} )
7
8
Original file line number Diff line number Diff line change 9
9
"preview" : " vite preview"
10
10
},
11
11
"devDependencies" : {
12
- "@sveltejs/vite-plugin-svelte" : " ^3.1.2 " ,
13
- "svelte" : " ^4.2.19 " ,
12
+ "@sveltejs/vite-plugin-svelte" : " ^4.0.0 " ,
13
+ "svelte" : " ^5.0.3 " ,
14
14
"vite" : " ^5.4.9"
15
15
}
16
16
}
Original file line number Diff line number Diff line change 1
1
<script >
2
- let count = 0
2
+ let count = $state ( 0 )
3
3
const increment = () => {
4
4
count += 1
5
5
}
6
6
</script >
7
7
8
- <button on:click ={increment }>
8
+ <button onclick ={increment }>
9
9
count is {count }
10
10
</button >
Original file line number Diff line number Diff line change
1
+ import { mount } from 'svelte'
1
2
import './app.css'
2
3
import App from './App.svelte'
3
4
4
- const app = new App ( {
5
+ const app = mount ( App , {
5
6
target : document . getElementById ( 'app' ) ,
6
7
} )
7
8
You can’t perform that action at this time.
0 commit comments