create-vite-extra 0.0.2 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/template-ssr-preact-ts/tsconfig.json +2 -3
- package/template-ssr-svelte/README.md +0 -1
- package/template-ssr-svelte/jsconfig.json +0 -1
- package/template-ssr-svelte-ts/README.md +0 -1
- package/template-ssr-svelte-ts/tsconfig.json +0 -1
- package/template-ssr-vanilla/src/counter.js +1 -1
- package/template-ssr-vanilla-ts/src/counter.ts +1 -1
- package/template-ssr-vanilla-ts/tsconfig.json +0 -1
- package/template-ssr-vue-ts/tsconfig.json +2 -2
- package/template-ssr-preact-ts/src/preact.d.ts +0 -1
package/package.json
CHANGED
|
@@ -14,9 +14,8 @@
|
|
|
14
14
|
"resolveJsonModule": true,
|
|
15
15
|
"isolatedModules": true,
|
|
16
16
|
"noEmit": true,
|
|
17
|
-
"jsx": "
|
|
18
|
-
"
|
|
19
|
-
"jsxFragmentFactory": "Fragment"
|
|
17
|
+
"jsx": "react-jsx",
|
|
18
|
+
"jsxImportSource": "preact"
|
|
20
19
|
},
|
|
21
20
|
"include": ["src"],
|
|
22
21
|
"references": [{ "path": "./tsconfig.node.json" }]
|
|
@@ -16,7 +16,6 @@ Check out [SvelteKit](https://github.com/sveltejs/kit#readme), which is also pow
|
|
|
16
16
|
|
|
17
17
|
- It brings its own routing solution which might not be preferable for some users.
|
|
18
18
|
- It is first and foremost a framework that just happens to use Vite under the hood, not a Vite app.
|
|
19
|
-
`vite dev` and `vite build` wouldn't work in a SvelteKit environment, for example.
|
|
20
19
|
|
|
21
20
|
This template contains as little as possible to get started with Vite + Svelte, while taking into account the developer experience with regards to HMR and intellisense. It demonstrates capabilities on par with the other `create-vite` templates and is a good starting point for beginners dipping their toes into a Vite + Svelte project.
|
|
22
21
|
|
|
@@ -16,7 +16,6 @@ Check out [SvelteKit](https://github.com/sveltejs/kit#readme), which is also pow
|
|
|
16
16
|
|
|
17
17
|
- It brings its own routing solution which might not be preferable for some users.
|
|
18
18
|
- It is first and foremost a framework that just happens to use Vite under the hood, not a Vite app.
|
|
19
|
-
`vite dev` and `vite build` wouldn't work in a SvelteKit environment, for example.
|
|
20
19
|
|
|
21
20
|
This template contains as little as possible to get started with Vite + TypeScript + Svelte, while taking into account the developer experience with regards to HMR and intellisense. It demonstrates capabilities on par with the other `create-vite` templates and is a good starting point for beginners dipping their toes into a Vite + Svelte project.
|
|
22
21
|
|
|
@@ -4,6 +4,6 @@ export function setupCounter(element: HTMLButtonElement) {
|
|
|
4
4
|
counter = count
|
|
5
5
|
element.innerHTML = `count is ${counter}`
|
|
6
6
|
}
|
|
7
|
-
element.addEventListener('click', () => setCounter(
|
|
7
|
+
element.addEventListener('click', () => setCounter(counter + 1))
|
|
8
8
|
setCounter(0)
|
|
9
9
|
}
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
"moduleResolution": "Node",
|
|
7
7
|
"strict": true,
|
|
8
8
|
"jsx": "preserve",
|
|
9
|
-
"sourceMap": true,
|
|
10
9
|
"resolveJsonModule": true,
|
|
11
10
|
"isolatedModules": true,
|
|
12
11
|
"esModuleInterop": true,
|
|
13
12
|
"lib": ["ESNext", "DOM"],
|
|
14
|
-
"skipLibCheck": true
|
|
13
|
+
"skipLibCheck": true,
|
|
14
|
+
"noEmit": true
|
|
15
15
|
},
|
|
16
16
|
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
|
|
17
17
|
"references": [{ "path": "./tsconfig.node.json" }]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import JSX = preact.JSX
|