create-vite-extra 1.0.2 → 1.1.1

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.
Files changed (67) hide show
  1. package/README.md +10 -1
  2. package/index.js +1 -1
  3. package/package.json +6 -3
  4. package/template-deno-lit/_gitignore +1 -0
  5. package/template-deno-lit/src/my-element.js +1 -1
  6. package/template-deno-lit/vite.config.mjs +2 -2
  7. package/template-deno-lit-ts/_gitignore +1 -0
  8. package/template-deno-lit-ts/src/my-element.ts +1 -1
  9. package/template-deno-lit-ts/vite.config.mts +2 -2
  10. package/template-deno-preact/_gitignore +1 -0
  11. package/template-deno-preact/vite.config.mjs +4 -4
  12. package/template-deno-preact-ts/_gitignore +1 -0
  13. package/template-deno-preact-ts/vite.config.mts +4 -4
  14. package/template-deno-react/_gitignore +1 -0
  15. package/template-deno-react/src/App.jsx +2 -2
  16. package/template-deno-react/vite.config.mjs +3 -3
  17. package/template-deno-react-ts/_gitignore +1 -0
  18. package/template-deno-react-ts/src/App.tsx +2 -2
  19. package/template-deno-react-ts/vite.config.mts +3 -3
  20. package/template-deno-solid/_gitignore +1 -0
  21. package/template-deno-solid/vite.config.mjs +3 -3
  22. package/template-deno-solid-ts/_gitignore +1 -0
  23. package/template-deno-solid-ts/vite.config.mts +3 -3
  24. package/template-deno-svelte/_gitignore +1 -0
  25. package/template-deno-svelte/svelte.config.js +1 -1
  26. package/template-deno-svelte/vite.config.mjs +3 -3
  27. package/template-deno-svelte-ts/_gitignore +1 -0
  28. package/template-deno-svelte-ts/svelte.config.js +1 -1
  29. package/template-deno-svelte-ts/vite.config.mts +3 -3
  30. package/template-deno-vanilla/_gitignore +1 -0
  31. package/template-deno-vanilla-ts/_gitignore +1 -0
  32. package/template-deno-vue/_gitignore +1 -1
  33. package/template-deno-vue/vite.config.mjs +3 -3
  34. package/template-deno-vue-ts/_gitignore +1 -0
  35. package/template-deno-vue-ts/vite.config.mts +3 -3
  36. package/template-library/package.json +1 -1
  37. package/template-library/vite.config.js +2 -2
  38. package/template-library-ts/package.json +2 -2
  39. package/template-library-ts/tsconfig.json +11 -8
  40. package/template-ssr-preact/package.json +5 -5
  41. package/template-ssr-preact-ts/package.json +8 -8
  42. package/template-ssr-preact-ts/tsconfig.json +14 -10
  43. package/template-ssr-preact-ts/tsconfig.node.json +2 -2
  44. package/template-ssr-react/package.json +5 -5
  45. package/template-ssr-react/src/App.jsx +2 -2
  46. package/template-ssr-react-ts/package.json +8 -8
  47. package/template-ssr-react-ts/src/App.tsx +2 -2
  48. package/template-ssr-react-ts/tsconfig.json +14 -10
  49. package/template-ssr-react-ts/tsconfig.node.json +2 -1
  50. package/template-ssr-solid/package.json +4 -4
  51. package/template-ssr-solid-ts/package.json +6 -6
  52. package/template-ssr-solid-ts/tsconfig.json +14 -10
  53. package/template-ssr-solid-ts/tsconfig.node.json +2 -1
  54. package/template-ssr-svelte/README.md +1 -1
  55. package/template-ssr-svelte/package.json +4 -4
  56. package/template-ssr-svelte-ts/README.md +1 -1
  57. package/template-ssr-svelte-ts/package.json +10 -10
  58. package/template-ssr-svelte-ts/tsconfig.node.json +7 -2
  59. package/template-ssr-transform/package.json +1 -1
  60. package/template-ssr-vanilla/package.json +2 -2
  61. package/template-ssr-vanilla-ts/package.json +5 -5
  62. package/template-ssr-vanilla-ts/tsconfig.json +11 -7
  63. package/template-ssr-vanilla-ts/tsconfig.node.json +7 -2
  64. package/template-ssr-vue/package.json +4 -4
  65. package/template-ssr-vue-ts/package.json +8 -8
  66. package/template-ssr-vue-ts/tsconfig.json +15 -8
  67. package/template-ssr-vue-ts/tsconfig.node.json +7 -2
package/README.md CHANGED
@@ -29,6 +29,12 @@ With Deno:
29
29
  $ deno run -A npm:create-vite-extra
30
30
  ```
31
31
 
32
+ With Bun:
33
+
34
+ ```bash
35
+ $ bunx create-vite-extra
36
+ ```
37
+
32
38
  Then follow the prompts!
33
39
 
34
40
  You can also directly specify the project name and the template you want to use via additional command line options. For example, to scaffold a Vite + SSR + Vue project, run:
@@ -45,6 +51,9 @@ pnpm create vite-extra my-vue-app --template ssr-vue
45
51
 
46
52
  # Deno
47
53
  deno run -A npm:create-vite-extra --template deno-vue
54
+
55
+ # Bun
56
+ bunx create-vite my-vue-app --template ssr-vue
48
57
  ```
49
58
 
50
59
  Currently supported template presets include:
@@ -103,4 +112,4 @@ npx degit user/project#main my-project
103
112
 
104
113
  ## Attribution
105
114
 
106
- This project is originally a fork of [create-vite](https://github.com/vitejs/vite/tree/main/packages/create-vite). Credit goes to all of it's contributors.
115
+ This project is originally a fork of [create-vite](https://github.com/vitejs/vite/tree/main/packages/create-vite). Credit goes to all of its contributors.
package/index.js CHANGED
@@ -567,7 +567,7 @@ function setupReactSwc(root, { isTs, isDeno }) {
567
567
  editFile(path.resolve(root, 'package.json'), (content) => {
568
568
  return content.replace(
569
569
  /"@vitejs\/plugin-react": ".+?"/,
570
- `"@vitejs/plugin-react-swc": "^3.0.0"`
570
+ `"@vitejs/plugin-react-swc": "^3.3.2"`
571
571
  )
572
572
  })
573
573
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vite-extra",
3
- "version": "1.0.2",
3
+ "version": "1.1.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Bjorn Lu",
@@ -28,8 +28,11 @@
28
28
  },
29
29
  "homepage": "https://github.com/bluwy/create-vite-extra#readme",
30
30
  "dependencies": {
31
- "kolorist": "^1.6.0",
32
- "minimist": "^1.2.7",
31
+ "kolorist": "^1.8.0",
32
+ "minimist": "^1.2.8",
33
33
  "prompts": "^2.4.2"
34
+ },
35
+ "scripts": {
36
+ "update-deps": "pnpm update -r --latest && node update-deno-deps.js"
34
37
  }
35
38
  }
@@ -10,6 +10,7 @@ lerna-debug.log*
10
10
  node_modules
11
11
  dist
12
12
  dist-ssr
13
+ .vite
13
14
  *.local
14
15
 
15
16
  # Editor directories and files
@@ -91,7 +91,7 @@ export class MyElement extends LitElement {
91
91
  color: #535bf2;
92
92
  }
93
93
 
94
- h1 {
94
+ ::slotted(h1) {
95
95
  font-size: 3.2em;
96
96
  line-height: 1.1;
97
97
  }
@@ -1,6 +1,6 @@
1
- import { defineConfig } from 'npm:vite@^4.0.4'
1
+ import { defineConfig } from 'npm:vite@^4.4.11'
2
2
 
3
- import 'npm:lit@^2.5.0'
3
+ import 'npm:lit@^2.7.5'
4
4
 
5
5
  // https://vitejs.dev/config/
6
6
  export default defineConfig({
@@ -10,6 +10,7 @@ lerna-debug.log*
10
10
  node_modules
11
11
  dist
12
12
  dist-ssr
13
+ .vite
13
14
  *.local
14
15
 
15
16
  # Editor directories and files
@@ -75,7 +75,7 @@ export class MyElement extends LitElement {
75
75
  color: #888;
76
76
  }
77
77
 
78
- h1 {
78
+ ::slotted(h1) {
79
79
  font-size: 3.2em;
80
80
  line-height: 1.1;
81
81
  }
@@ -1,6 +1,6 @@
1
- import { defineConfig } from 'npm:vite@^4.0.4'
1
+ import { defineConfig } from 'npm:vite@^4.4.11'
2
2
 
3
- import 'npm:lit@^2.5.0'
3
+ import 'npm:lit@^2.7.5'
4
4
 
5
5
  // https://vitejs.dev/config/
6
6
  export default defineConfig({
@@ -10,6 +10,7 @@ lerna-debug.log*
10
10
  node_modules
11
11
  dist
12
12
  dist-ssr
13
+ .vite
13
14
  *.local
14
15
 
15
16
  # Editor directories and files
@@ -1,8 +1,8 @@
1
- import { defineConfig } from 'npm:vite@^4.0.4'
2
- import preact from 'npm:@preact/preset-vite@^2.5.0'
1
+ import { defineConfig } from 'npm:vite@^4.4.11'
2
+ import preact from 'npm:@preact/preset-vite@^2.6.0'
3
3
 
4
- import 'npm:preact@^10.11.3'
5
- import 'npm:preact@^10.11.3/hooks'
4
+ import 'npm:preact@^10.18.1'
5
+ import 'npm:preact@^10.18.1'
6
6
 
7
7
  // https://vitejs.dev/config/
8
8
  export default defineConfig({
@@ -10,6 +10,7 @@ lerna-debug.log*
10
10
  node_modules
11
11
  dist
12
12
  dist-ssr
13
+ .vite
13
14
  *.local
14
15
 
15
16
  # Editor directories and files
@@ -1,8 +1,8 @@
1
- import { defineConfig } from 'npm:vite@^4.0.4'
2
- import preact from 'npm:@preact/preset-vite@^2.5.0'
1
+ import { defineConfig } from 'npm:vite@^4.4.11'
2
+ import preact from 'npm:@preact/preset-vite@^2.6.0'
3
3
 
4
- import 'npm:preact@^10.11.3'
5
- import 'npm:preact@^10.11.3/hooks'
4
+ import 'npm:preact@^10.18.1'
5
+ import 'npm:preact@^10.18.1'
6
6
 
7
7
  // https://vitejs.dev/config/
8
8
  export default defineConfig({
@@ -10,6 +10,7 @@ lerna-debug.log*
10
10
  node_modules
11
11
  dist
12
12
  dist-ssr
13
+ .vite
13
14
  *.local
14
15
 
15
16
  # Editor directories and files
@@ -6,7 +6,7 @@ function App() {
6
6
  const [count, setCount] = useState(0)
7
7
 
8
8
  return (
9
- <div className="App">
9
+ <>
10
10
  <img src="/vite-deno.svg" alt="Vite with Deno" />
11
11
  <div>
12
12
  <a href="https://vitejs.dev" target="_blank">
@@ -28,7 +28,7 @@ function App() {
28
28
  <p className="read-the-docs">
29
29
  Click on the Vite and React logos to learn more
30
30
  </p>
31
- </div>
31
+ </>
32
32
  )
33
33
  }
34
34
 
@@ -1,8 +1,8 @@
1
- import { defineConfig } from 'npm:vite@^4.0.4'
2
- import react from 'npm:@vitejs/plugin-react@^3.0.1'
1
+ import { defineConfig } from 'npm:vite@^4.4.11'
2
+ import react from 'npm:@vitejs/plugin-react@^4.1.0'
3
3
 
4
4
  import 'npm:react@^18.2.0'
5
- import 'npm:react-dom@^18.2.0/client'
5
+ import 'npm:react-dom@^18.2.0'
6
6
 
7
7
  // https://vitejs.dev/config/
8
8
  export default defineConfig({
@@ -10,6 +10,7 @@ lerna-debug.log*
10
10
  node_modules
11
11
  dist
12
12
  dist-ssr
13
+ .vite
13
14
  *.local
14
15
 
15
16
  # Editor directories and files
@@ -6,7 +6,7 @@ function App() {
6
6
  const [count, setCount] = useState(0)
7
7
 
8
8
  return (
9
- <div className="App">
9
+ <>
10
10
  <img src="/vite-deno.svg" alt="Vite with Deno" />
11
11
  <div>
12
12
  <a href="https://vitejs.dev" target="_blank">
@@ -28,7 +28,7 @@ function App() {
28
28
  <p className="read-the-docs">
29
29
  Click on the Vite and React logos to learn more
30
30
  </p>
31
- </div>
31
+ </>
32
32
  )
33
33
  }
34
34
 
@@ -1,8 +1,8 @@
1
- import { defineConfig } from 'npm:vite@^4.0.4'
2
- import react from 'npm:@vitejs/plugin-react@^3.0.1'
1
+ import { defineConfig } from 'npm:vite@^4.4.11'
2
+ import react from 'npm:@vitejs/plugin-react@^4.1.0'
3
3
 
4
4
  import 'npm:react@^18.2.0'
5
- import 'npm:react-dom@^18.2.0/client'
5
+ import 'npm:react-dom@^18.2.0'
6
6
 
7
7
  // https://vitejs.dev/config/
8
8
  export default defineConfig({
@@ -10,6 +10,7 @@ lerna-debug.log*
10
10
  node_modules
11
11
  dist
12
12
  dist-ssr
13
+ .vite
13
14
  *.local
14
15
 
15
16
  # Editor directories and files
@@ -1,7 +1,7 @@
1
- import { defineConfig } from 'npm:vite@^4.0.4'
2
- import solid from 'npm:vite-plugin-solid@^2.4.0'
1
+ import { defineConfig } from 'npm:vite@^4.4.11'
2
+ import solid from 'npm:vite-plugin-solid@^2.7.1'
3
3
 
4
- import 'npm:solid-js@^1.6.3'
4
+ import 'npm:solid-js@^1.8.1'
5
5
 
6
6
  // https://vitejs.dev/config/
7
7
  export default defineConfig({
@@ -10,6 +10,7 @@ lerna-debug.log*
10
10
  node_modules
11
11
  dist
12
12
  dist-ssr
13
+ .vite
13
14
  *.local
14
15
 
15
16
  # Editor directories and files
@@ -1,7 +1,7 @@
1
- import { defineConfig } from 'npm:vite@^4.0.4'
2
- import solid from 'npm:vite-plugin-solid@^2.4.0'
1
+ import { defineConfig } from 'npm:vite@^4.4.11'
2
+ import solid from 'npm:vite-plugin-solid@^2.7.1'
3
3
 
4
- import 'npm:solid-js@^1.6.3'
4
+ import 'npm:solid-js@^1.8.1'
5
5
 
6
6
  // https://vitejs.dev/config/
7
7
  export default defineConfig({
@@ -10,6 +10,7 @@ lerna-debug.log*
10
10
  node_modules
11
11
  dist
12
12
  dist-ssr
13
+ .vite
13
14
  *.local
14
15
 
15
16
  # Editor directories and files
@@ -1,4 +1,4 @@
1
- import { vitePreprocess } from 'npm:@sveltejs/vite-plugin-svelte@^2.0.2'
1
+ import { vitePreprocess } from 'npm:@sveltejs/vite-plugin-svelte@^2.4.1'
2
2
 
3
3
  export default {
4
4
  preprocess: vitePreprocess()
@@ -1,7 +1,7 @@
1
- import { defineConfig } from 'npm:vite@^4.0.4'
2
- import { svelte } from 'npm:@sveltejs/vite-plugin-svelte@^2.0.2'
1
+ import { defineConfig } from 'npm:vite@^4.4.11'
2
+ import { svelte } from 'npm:@sveltejs/vite-plugin-svelte@^2.4.6'
3
3
 
4
- import 'npm:svelte@^3.54.0'
4
+ import 'npm:svelte@^4.2.1'
5
5
 
6
6
  // https://vitejs.dev/config/
7
7
  export default defineConfig({
@@ -10,6 +10,7 @@ lerna-debug.log*
10
10
  node_modules
11
11
  dist
12
12
  dist-ssr
13
+ .vite
13
14
  *.local
14
15
 
15
16
  # Editor directories and files
@@ -1,4 +1,4 @@
1
- import { vitePreprocess } from 'npm:@sveltejs/vite-plugin-svelte@^2.0.2'
1
+ import { vitePreprocess } from 'npm:@sveltejs/vite-plugin-svelte@^2.4.1'
2
2
 
3
3
  export default {
4
4
  preprocess: vitePreprocess()
@@ -1,7 +1,7 @@
1
- import { defineConfig } from 'npm:vite@^4.0.4'
2
- import { svelte } from 'npm:@sveltejs/vite-plugin-svelte@^2.0.2'
1
+ import { defineConfig } from 'npm:vite@^4.4.11'
2
+ import { svelte } from 'npm:@sveltejs/vite-plugin-svelte@^2.4.6'
3
3
 
4
- import 'npm:svelte@^3.54.0'
4
+ import 'npm:svelte@^4.2.1'
5
5
 
6
6
  // https://vitejs.dev/config/
7
7
  export default defineConfig({
@@ -10,6 +10,7 @@ lerna-debug.log*
10
10
  node_modules
11
11
  dist
12
12
  dist-ssr
13
+ .vite
13
14
  *.local
14
15
 
15
16
  # Editor directories and files
@@ -10,6 +10,7 @@ lerna-debug.log*
10
10
  node_modules
11
11
  dist
12
12
  dist-ssr
13
+ .vite
13
14
  *.local
14
15
 
15
16
  # Editor directories and files
@@ -10,6 +10,7 @@ lerna-debug.log*
10
10
  node_modules
11
11
  dist
12
12
  dist-ssr
13
+ .vite
13
14
  *.local
14
15
 
15
16
  # Editor directories and files
@@ -22,4 +23,3 @@ dist-ssr
22
23
  *.njsproj
23
24
  *.sln
24
25
  *.sw?
25
- .vite
@@ -1,7 +1,7 @@
1
- import { defineConfig } from 'npm:vite@^4.0.4'
2
- import vue from 'npm:@vitejs/plugin-vue@^4.0.0'
1
+ import { defineConfig } from 'npm:vite@^4.4.11'
2
+ import vue from 'npm:@vitejs/plugin-vue@^4.4.0'
3
3
 
4
- import 'npm:vue@^3.2.45'
4
+ import 'npm:vue@^3.3.4'
5
5
 
6
6
  // https://vitejs.dev/config/
7
7
  export default defineConfig({
@@ -10,6 +10,7 @@ lerna-debug.log*
10
10
  node_modules
11
11
  dist
12
12
  dist-ssr
13
+ .vite
13
14
  *.local
14
15
 
15
16
  # Editor directories and files
@@ -1,7 +1,7 @@
1
- import { defineConfig } from 'npm:vite@^4.0.4'
2
- import vue from 'npm:@vitejs/plugin-vue@^4.0.0'
1
+ import { defineConfig } from 'npm:vite@^4.4.11'
2
+ import vue from 'npm:@vitejs/plugin-vue@^4.4.0'
3
3
 
4
- import 'npm:vue@^3.2.45'
4
+ import 'npm:vue@^3.3.4'
5
5
 
6
6
  // https://vitejs.dev/config/
7
7
  export default defineConfig({
@@ -20,6 +20,6 @@
20
20
  "build": "vite build"
21
21
  },
22
22
  "devDependencies": {
23
- "vite": "^4.0.4"
23
+ "vite": "^4.4.11"
24
24
  }
25
25
  }
@@ -1,4 +1,4 @@
1
- import { defineConfig } from "vite";
1
+ import { defineConfig } from 'vite'
2
2
 
3
3
  export default defineConfig({
4
4
  build: {
@@ -8,4 +8,4 @@ export default defineConfig({
8
8
  fileName: 'counter'
9
9
  }
10
10
  }
11
- })
11
+ })
@@ -20,7 +20,7 @@
20
20
  "build": "tsc && vite build"
21
21
  },
22
22
  "devDependencies": {
23
- "typescript": "^4.9.4",
24
- "vite": "^4.0.4"
23
+ "typescript": "^5.2.2",
24
+ "vite": "^4.4.11"
25
25
  }
26
26
  }
@@ -1,20 +1,23 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "target": "ESNext",
3
+ "target": "ES2020",
4
4
  "useDefineForClassFields": true,
5
5
  "module": "ESNext",
6
- "lib": ["ESNext", "DOM"],
7
- "moduleResolution": "Node",
8
- "strict": true,
9
- "sourceMap": true,
6
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
7
+ "skipLibCheck": true,
8
+
9
+ /* Bundler mode */
10
+ "moduleResolution": "bundler",
11
+ "allowImportingTsExtensions": true,
10
12
  "resolveJsonModule": true,
11
13
  "isolatedModules": true,
12
- "esModuleInterop": true,
13
14
  "noEmit": true,
15
+
16
+ /* Linting */
17
+ "strict": true,
14
18
  "noUnusedLocals": true,
15
19
  "noUnusedParameters": true,
16
- "noImplicitReturns": true,
17
- "skipLibCheck": true
20
+ "noFallthroughCasesInSwitch": true
18
21
  },
19
22
  "include": ["src"]
20
23
  }
@@ -13,13 +13,13 @@
13
13
  "dependencies": {
14
14
  "compression": "^1.7.4",
15
15
  "express": "^4.18.2",
16
- "preact": "^10.11.3",
17
- "preact-render-to-string": "^5.2.6",
18
- "sirv": "^2.0.2"
16
+ "preact": "^10.18.1",
17
+ "preact-render-to-string": "^6.2.2",
18
+ "sirv": "^2.0.3"
19
19
  },
20
20
  "devDependencies": {
21
- "@preact/preset-vite": "^2.5.0",
21
+ "@preact/preset-vite": "^2.6.0",
22
22
  "cross-env": "^7.0.3",
23
- "vite": "^4.0.4"
23
+ "vite": "^4.4.11"
24
24
  }
25
25
  }
@@ -13,16 +13,16 @@
13
13
  "dependencies": {
14
14
  "compression": "^1.7.4",
15
15
  "express": "^4.18.2",
16
- "preact": "^10.11.3",
17
- "preact-render-to-string": "^5.2.6",
18
- "sirv": "^2.0.2"
16
+ "preact": "^10.18.1",
17
+ "preact-render-to-string": "^6.2.2",
18
+ "sirv": "^2.0.3"
19
19
  },
20
20
  "devDependencies": {
21
- "@preact/preset-vite": "^2.5.0",
22
- "@types/express": "^4.17.16",
23
- "@types/node": "^18.11.12",
21
+ "@preact/preset-vite": "^2.6.0",
22
+ "@types/express": "^4.17.19",
23
+ "@types/node": "^20.8.6",
24
24
  "cross-env": "^7.0.3",
25
- "typescript": "^4.9.4",
26
- "vite": "^4.0.4"
25
+ "typescript": "^5.2.2",
26
+ "vite": "^4.4.11"
27
27
  }
28
28
  }
@@ -1,21 +1,25 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "target": "ESNext",
3
+ "target": "ES2020",
4
4
  "useDefineForClassFields": true,
5
- "lib": ["DOM", "DOM.Iterable", "ESNext"],
6
- "allowJs": false,
7
- "skipLibCheck": true,
8
- "esModuleInterop": false,
9
- "allowSyntheticDefaultImports": true,
10
- "strict": true,
11
- "forceConsistentCasingInFileNames": true,
12
5
  "module": "ESNext",
13
- "moduleResolution": "Node",
6
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
7
+ "skipLibCheck": true,
8
+
9
+ /* Bundler mode */
10
+ "moduleResolution": "bundler",
11
+ "allowImportingTsExtensions": true,
14
12
  "resolveJsonModule": true,
15
13
  "isolatedModules": true,
16
14
  "noEmit": true,
17
15
  "jsx": "react-jsx",
18
- "jsxImportSource": "preact"
16
+ "jsxImportSource": "preact",
17
+
18
+ /* Linting */
19
+ "strict": true,
20
+ "noUnusedLocals": true,
21
+ "noUnusedParameters": true,
22
+ "noFallthroughCasesInSwitch": true
19
23
  },
20
24
  "include": ["src"],
21
25
  "references": [{ "path": "./tsconfig.node.json" }]
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "composite": true,
4
+ "skipLibCheck": true,
4
5
  "module": "ESNext",
5
- "moduleResolution": "Node",
6
+ "moduleResolution": "bundler",
6
7
  "allowSyntheticDefaultImports": true,
7
8
  "jsx": "preserve"
8
9
  },
9
10
  "include": [
10
11
  "vite.config.ts",
11
12
  "src/entry-server.tsx",
12
- "src/preact.d.ts",
13
13
  "src/vite-env.d.ts"
14
14
  ]
15
15
  }
@@ -15,13 +15,13 @@
15
15
  "express": "^4.18.2",
16
16
  "react": "^18.2.0",
17
17
  "react-dom": "^18.2.0",
18
- "sirv": "^2.0.2"
18
+ "sirv": "^2.0.3"
19
19
  },
20
20
  "devDependencies": {
21
- "@types/react": "^18.0.26",
22
- "@types/react-dom": "^18.0.9",
23
- "@vitejs/plugin-react": "^3.0.1",
21
+ "@types/react": "^18.2.28",
22
+ "@types/react-dom": "^18.2.13",
23
+ "@vitejs/plugin-react": "^4.1.0",
24
24
  "cross-env": "^7.0.3",
25
- "vite": "^4.0.4"
25
+ "vite": "^4.4.11"
26
26
  }
27
27
  }
@@ -6,7 +6,7 @@ function App() {
6
6
  const [count, setCount] = useState(0)
7
7
 
8
8
  return (
9
- <div className="App">
9
+ <>
10
10
  <div>
11
11
  <a href="https://vitejs.dev" target="_blank">
12
12
  <img src="/vite.svg" className="logo" alt="Vite logo" />
@@ -27,7 +27,7 @@ function App() {
27
27
  <p className="read-the-docs">
28
28
  Click on the Vite and React logos to learn more
29
29
  </p>
30
- </div>
30
+ </>
31
31
  )
32
32
  }
33
33
 
@@ -15,16 +15,16 @@
15
15
  "express": "^4.18.2",
16
16
  "react": "^18.2.0",
17
17
  "react-dom": "^18.2.0",
18
- "sirv": "^2.0.2"
18
+ "sirv": "^2.0.3"
19
19
  },
20
20
  "devDependencies": {
21
- "@types/express": "^4.17.16",
22
- "@types/node": "^18.11.12",
23
- "@types/react": "^18.0.26",
24
- "@types/react-dom": "^18.0.9",
25
- "@vitejs/plugin-react": "^3.0.1",
21
+ "@types/express": "^4.17.19",
22
+ "@types/node": "^20.8.6",
23
+ "@types/react": "^18.2.28",
24
+ "@types/react-dom": "^18.2.13",
25
+ "@vitejs/plugin-react": "^4.1.0",
26
26
  "cross-env": "^7.0.3",
27
- "typescript": "^4.9.4",
28
- "vite": "^4.0.4"
27
+ "typescript": "^5.2.2",
28
+ "vite": "^4.4.11"
29
29
  }
30
30
  }
@@ -6,7 +6,7 @@ function App() {
6
6
  const [count, setCount] = useState(0)
7
7
 
8
8
  return (
9
- <div className="App">
9
+ <>
10
10
  <div>
11
11
  <a href="https://vitejs.dev" target="_blank">
12
12
  <img src="/vite.svg" className="logo" alt="Vite logo" />
@@ -27,7 +27,7 @@ function App() {
27
27
  <p className="read-the-docs">
28
28
  Click on the Vite and React logos to learn more
29
29
  </p>
30
- </div>
30
+ </>
31
31
  )
32
32
  }
33
33
 
@@ -1,20 +1,24 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "target": "ESNext",
3
+ "target": "ES2020",
4
4
  "useDefineForClassFields": true,
5
- "lib": ["DOM", "DOM.Iterable", "ESNext"],
6
- "allowJs": false,
7
- "skipLibCheck": true,
8
- "esModuleInterop": false,
9
- "allowSyntheticDefaultImports": true,
10
- "strict": true,
11
- "forceConsistentCasingInFileNames": true,
5
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
12
6
  "module": "ESNext",
13
- "moduleResolution": "Node",
7
+ "skipLibCheck": true,
8
+
9
+ /* Bundler mode */
10
+ "moduleResolution": "bundler",
11
+ "allowImportingTsExtensions": true,
14
12
  "resolveJsonModule": true,
15
13
  "isolatedModules": true,
16
14
  "noEmit": true,
17
- "jsx": "react-jsx"
15
+ "jsx": "react-jsx",
16
+
17
+ /* Linting */
18
+ "strict": true,
19
+ "noUnusedLocals": true,
20
+ "noUnusedParameters": true,
21
+ "noFallthroughCasesInSwitch": true
18
22
  },
19
23
  "include": ["src"],
20
24
  "references": [{ "path": "./tsconfig.node.json" }]
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "composite": true,
4
+ "skipLibCheck": true,
4
5
  "module": "ESNext",
5
- "moduleResolution": "Node",
6
+ "moduleResolution": "bundler",
6
7
  "allowSyntheticDefaultImports": true,
7
8
  "jsx": "preserve"
8
9
  },
@@ -13,12 +13,12 @@
13
13
  "dependencies": {
14
14
  "compression": "^1.7.4",
15
15
  "express": "^4.18.2",
16
- "sirv": "^2.0.2",
17
- "solid-js": "^1.6.4"
16
+ "sirv": "^2.0.3",
17
+ "solid-js": "^1.8.1"
18
18
  },
19
19
  "devDependencies": {
20
20
  "cross-env": "^7.0.3",
21
- "vite": "^4.0.4",
22
- "vite-plugin-solid": "^2.5.0"
21
+ "vite": "^4.4.11",
22
+ "vite-plugin-solid": "^2.7.1"
23
23
  }
24
24
  }
@@ -13,14 +13,14 @@
13
13
  "dependencies": {
14
14
  "compression": "^1.7.4",
15
15
  "express": "^4.18.2",
16
- "sirv": "^2.0.2",
17
- "solid-js": "^1.6.4"
16
+ "sirv": "^2.0.3",
17
+ "solid-js": "^1.8.1"
18
18
  },
19
19
  "devDependencies": {
20
- "@types/express": "^4.17.16",
21
- "@types/node": "^18.11.12",
20
+ "@types/express": "^4.17.19",
21
+ "@types/node": "^20.8.6",
22
22
  "cross-env": "^7.0.3",
23
- "vite": "^4.0.4",
24
- "vite-plugin-solid": "^2.5.0"
23
+ "vite": "^4.4.11",
24
+ "vite-plugin-solid": "^2.7.1"
25
25
  }
26
26
  }
@@ -1,21 +1,25 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "target": "ESNext",
3
+ "target": "ES2020",
4
4
  "useDefineForClassFields": true,
5
- "lib": ["DOM", "DOM.Iterable", "ESNext"],
6
- "allowJs": false,
7
- "skipLibCheck": true,
8
- "esModuleInterop": false,
9
- "allowSyntheticDefaultImports": true,
10
- "strict": true,
11
- "forceConsistentCasingInFileNames": true,
5
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
12
6
  "module": "ESNext",
13
- "moduleResolution": "Node",
7
+ "skipLibCheck": true,
8
+
9
+ /* Bundler mode */
10
+ "moduleResolution": "bundler",
11
+ "allowImportingTsExtensions": true,
14
12
  "resolveJsonModule": true,
15
13
  "isolatedModules": true,
16
14
  "noEmit": true,
17
15
  "jsx": "preserve",
18
- "jsxImportSource": "solid-js"
16
+ "jsxImportSource": "solid-js",
17
+
18
+ /* Linting */
19
+ "strict": true,
20
+ "noUnusedLocals": true,
21
+ "noUnusedParameters": true,
22
+ "noFallthroughCasesInSwitch": true
19
23
  },
20
24
  "include": ["src"],
21
25
  "references": [{ "path": "./tsconfig.node.json" }]
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "composite": true,
4
+ "skipLibCheck": true,
4
5
  "module": "ESNext",
5
- "moduleResolution": "Node",
6
+ "moduleResolution": "bundler",
6
7
  "allowSyntheticDefaultImports": true,
7
8
  "jsx": "preserve"
8
9
  },
@@ -35,7 +35,7 @@ It is likely that most cases of changing variable types in runtime are likely to
35
35
 
36
36
  **Why is HMR not preserving my local component state?**
37
37
 
38
- HMR state preservation comes with a number of gotchas! It has been disabled by default in both `svelte-hmr` and `@sveltejs/vite-plugin-svelte` due to its often surprising behavior. You can read the details [here](https://github.com/rixo/svelte-hmr#svelte-hmr).
38
+ HMR state preservation comes with a number of gotchas! It has been disabled by default in both `svelte-hmr` and `@sveltejs/vite-plugin-svelte` due to its often surprising behavior. You can read the details [here](https://github.com/sveltejs/svelte-hmr/tree/master/packages/svelte-hmr#preservation-of-local-state).
39
39
 
40
40
  If you have state that's important to retain within a component, consider creating an external store which would not be replaced by HMR.
41
41
 
@@ -13,12 +13,12 @@
13
13
  "dependencies": {
14
14
  "compression": "^1.7.4",
15
15
  "express": "^4.18.2",
16
- "sirv": "^2.0.2"
16
+ "sirv": "^2.0.3"
17
17
  },
18
18
  "devDependencies": {
19
- "@sveltejs/vite-plugin-svelte": "^2.0.2",
19
+ "@sveltejs/vite-plugin-svelte": "^2.4.6",
20
20
  "cross-env": "^7.0.3",
21
- "svelte": "^3.54.0",
22
- "vite": "^4.0.4"
21
+ "svelte": "^4.2.1",
22
+ "vite": "^4.4.11"
23
23
  }
24
24
  }
@@ -35,7 +35,7 @@ While `allowJs: false` would indeed prevent the use of `.js` files in the projec
35
35
 
36
36
  **Why is HMR not preserving my local component state?**
37
37
 
38
- HMR state preservation comes with a number of gotchas! It has been disabled by default in both `svelte-hmr` and `@sveltejs/vite-plugin-svelte` due to its often surprising behavior. You can read the details [here](https://github.com/rixo/svelte-hmr#svelte-hmr).
38
+ HMR state preservation comes with a number of gotchas! It has been disabled by default in both `svelte-hmr` and `@sveltejs/vite-plugin-svelte` due to its often surprising behavior. You can read the details [here](https://github.com/sveltejs/svelte-hmr/tree/master/packages/svelte-hmr#preservation-of-local-state).
39
39
 
40
40
  If you have state that's important to retain within a component, consider creating an external store which would not be replaced by HMR.
41
41
 
@@ -13,18 +13,18 @@
13
13
  "dependencies": {
14
14
  "compression": "^1.7.4",
15
15
  "express": "^4.18.2",
16
- "sirv": "^2.0.2"
16
+ "sirv": "^2.0.3"
17
17
  },
18
18
  "devDependencies": {
19
- "@types/express": "^4.17.16",
20
- "@types/node": "^18.11.12",
21
- "@sveltejs/vite-plugin-svelte": "^2.0.2",
22
- "@tsconfig/svelte": "^3.0.0",
19
+ "@sveltejs/vite-plugin-svelte": "^2.4.6",
20
+ "@tsconfig/svelte": "^5.0.2",
21
+ "@types/express": "^4.17.19",
22
+ "@types/node": "^20.8.6",
23
23
  "cross-env": "^7.0.3",
24
- "svelte": "^3.54.0",
25
- "svelte-check": "^3.0.3",
26
- "tslib": "^2.4.1",
27
- "typescript": "^4.9.4",
28
- "vite": "^4.0.4"
24
+ "svelte": "^4.2.1",
25
+ "svelte-check": "^3.5.2",
26
+ "tslib": "^2.6.2",
27
+ "typescript": "^5.2.2",
28
+ "vite": "^4.4.11"
29
29
  }
30
30
  }
@@ -1,8 +1,13 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "composite": true,
4
+ "skipLibCheck": true,
4
5
  "module": "ESNext",
5
- "moduleResolution": "Node"
6
+ "moduleResolution": "bundler"
6
7
  },
7
- "include": ["vite.config.ts", "src/entry-server.ts", "src/vite-env.d.ts"]
8
+ "include": [
9
+ "vite.config.ts",
10
+ "src/entry-server.ts",
11
+ "src/vite-env.d.ts"
12
+ ]
8
13
  }
@@ -7,6 +7,6 @@
7
7
  "test": "node test"
8
8
  },
9
9
  "devDependencies": {
10
- "vite": "^4.0.4"
10
+ "vite": "^4.4.11"
11
11
  }
12
12
  }
@@ -13,10 +13,10 @@
13
13
  "dependencies": {
14
14
  "compression": "^1.7.4",
15
15
  "express": "^4.18.2",
16
- "sirv": "^2.0.2"
16
+ "sirv": "^2.0.3"
17
17
  },
18
18
  "devDependencies": {
19
19
  "cross-env": "^7.0.3",
20
- "vite": "^4.0.4"
20
+ "vite": "^4.4.11"
21
21
  }
22
22
  }
@@ -13,13 +13,13 @@
13
13
  "dependencies": {
14
14
  "compression": "^1.7.4",
15
15
  "express": "^4.18.2",
16
- "sirv": "^2.0.2"
16
+ "sirv": "^2.0.3"
17
17
  },
18
18
  "devDependencies": {
19
- "@types/express": "^4.17.16",
20
- "@types/node": "^18.11.12",
19
+ "@types/express": "^4.17.19",
20
+ "@types/node": "^20.8.6",
21
21
  "cross-env": "^7.0.3",
22
- "typescript": "^4.9.4",
23
- "vite": "^4.0.4"
22
+ "typescript": "^5.2.2",
23
+ "vite": "^4.4.11"
24
24
  }
25
25
  }
@@ -1,19 +1,23 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "target": "ESNext",
3
+ "target": "ES2020",
4
4
  "useDefineForClassFields": true,
5
5
  "module": "ESNext",
6
- "lib": ["ESNext", "DOM"],
7
- "moduleResolution": "Node",
8
- "strict": true,
6
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
7
+ "skipLibCheck": true,
8
+
9
+ /* Bundler mode */
10
+ "moduleResolution": "bundler",
11
+ "allowImportingTsExtensions": true,
9
12
  "resolveJsonModule": true,
10
13
  "isolatedModules": true,
11
- "esModuleInterop": true,
12
14
  "noEmit": true,
15
+
16
+ /* Linting */
17
+ "strict": true,
13
18
  "noUnusedLocals": true,
14
19
  "noUnusedParameters": true,
15
- "noImplicitReturns": true,
16
- "skipLibCheck": true
20
+ "noFallthroughCasesInSwitch": true
17
21
  },
18
22
  "include": ["src"],
19
23
  "exclude": ["src/entry-server.ts"],
@@ -1,8 +1,13 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "composite": true,
4
+ "skipLibCheck": true,
4
5
  "module": "ESNext",
5
- "moduleResolution": "Node"
6
+ "moduleResolution": "bundler",
7
+ "allowSyntheticDefaultImports": true
6
8
  },
7
- "include": ["src/entry-server.ts", "src/vite-env.d.ts"]
9
+ "include": [
10
+ "src/entry-server.ts",
11
+ "src/vite-env.d.ts"
12
+ ]
8
13
  }
@@ -13,12 +13,12 @@
13
13
  "dependencies": {
14
14
  "compression": "^1.7.4",
15
15
  "express": "^4.18.2",
16
- "sirv": "^2.0.2",
17
- "vue": "^3.2.45"
16
+ "sirv": "^2.0.3",
17
+ "vue": "^3.3.4"
18
18
  },
19
19
  "devDependencies": {
20
- "@vitejs/plugin-vue": "^4.0.0",
20
+ "@vitejs/plugin-vue": "^4.4.0",
21
21
  "cross-env": "^7.0.3",
22
- "vite": "^4.0.4"
22
+ "vite": "^4.4.11"
23
23
  }
24
24
  }
@@ -13,16 +13,16 @@
13
13
  "dependencies": {
14
14
  "compression": "^1.7.4",
15
15
  "express": "^4.18.2",
16
- "sirv": "^2.0.2",
17
- "vue": "^3.2.45"
16
+ "sirv": "^2.0.3",
17
+ "vue": "^3.3.4"
18
18
  },
19
19
  "devDependencies": {
20
- "@types/express": "^4.17.16",
21
- "@types/node": "^18.11.12",
22
- "@vitejs/plugin-vue": "^4.0.0",
20
+ "@types/express": "^4.17.19",
21
+ "@types/node": "^20.8.6",
22
+ "@vitejs/plugin-vue": "^4.4.0",
23
23
  "cross-env": "^7.0.3",
24
- "typescript": "^4.9.4",
25
- "vite": "^4.0.4",
26
- "vue-tsc": "^1.0.24"
24
+ "typescript": "^5.2.2",
25
+ "vite": "^4.4.11",
26
+ "vue-tsc": "^1.8.19"
27
27
  }
28
28
  }
@@ -1,17 +1,24 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "target": "ESNext",
3
+ "target": "ES2020",
4
4
  "useDefineForClassFields": true,
5
5
  "module": "ESNext",
6
- "moduleResolution": "Node",
7
- "strict": true,
8
- "jsx": "preserve",
6
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
7
+ "skipLibCheck": true,
8
+
9
+ /* Bundler mode */
10
+ "moduleResolution": "bundler",
11
+ "allowImportingTsExtensions": true,
9
12
  "resolveJsonModule": true,
10
13
  "isolatedModules": true,
11
- "esModuleInterop": true,
12
- "lib": ["ESNext", "DOM"],
13
- "skipLibCheck": true,
14
- "noEmit": true
14
+ "noEmit": true,
15
+ "jsx": "preserve",
16
+
17
+ /* Linting */
18
+ "strict": true,
19
+ "noUnusedLocals": true,
20
+ "noUnusedParameters": true,
21
+ "noFallthroughCasesInSwitch": true
15
22
  },
16
23
  "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
17
24
  "references": [{ "path": "./tsconfig.node.json" }]
@@ -1,9 +1,14 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "composite": true,
4
+ "skipLibCheck": true,
4
5
  "module": "ESNext",
5
- "moduleResolution": "Node",
6
+ "moduleResolution": "bundler",
6
7
  "allowSyntheticDefaultImports": true
7
8
  },
8
- "include": ["vite.config.ts", "src/entry-server.ts", "src/vite-env.d.ts"]
9
+ "include": [
10
+ "vite.config.ts",
11
+ "src/entry-server.ts",
12
+ "src/vite-env.d.ts"
13
+ ]
9
14
  }