create-vite-extra 2.3.0 → 2.4.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 (91) hide show
  1. package/LICENSE +124 -0
  2. package/package.json +3 -2
  3. package/template-deno-lit/deno.json +2 -2
  4. package/template-deno-lit-ts/deno.json +2 -2
  5. package/template-deno-preact/deno.json +1 -1
  6. package/template-deno-preact/src/app.jsx +1 -1
  7. package/template-deno-preact/src/main.jsx +1 -1
  8. package/template-deno-preact-ts/deno.json +1 -1
  9. package/template-deno-preact-ts/src/app.tsx +1 -1
  10. package/template-deno-preact-ts/src/main.tsx +1 -1
  11. package/template-deno-react/deno.json +3 -3
  12. package/template-deno-react/src/App.jsx +1 -1
  13. package/template-deno-react/src/main.jsx +3 -3
  14. package/template-deno-react-ts/deno.json +3 -3
  15. package/template-deno-react-ts/src/App.tsx +1 -1
  16. package/template-deno-react-ts/src/main.tsx +1 -1
  17. package/template-deno-solid/deno.json +1 -1
  18. package/template-deno-solid/src/App.jsx +1 -1
  19. package/template-deno-solid/src/main.jsx +1 -2
  20. package/template-deno-solid-ts/deno.json +1 -1
  21. package/template-deno-solid-ts/src/App.tsx +1 -1
  22. package/template-deno-solid-ts/src/main.tsx +1 -2
  23. package/template-deno-svelte/deno.json +3 -3
  24. package/template-deno-svelte/src/lib/Counter.svelte +2 -2
  25. package/template-deno-svelte/src/main.js +2 -1
  26. package/template-deno-svelte-ts/deno.json +3 -3
  27. package/template-deno-svelte-ts/src/lib/Counter.svelte +2 -2
  28. package/template-deno-svelte-ts/src/main.ts +3 -2
  29. package/template-deno-vanilla/deno.json +1 -1
  30. package/template-deno-vanilla-ts/deno.json +1 -1
  31. package/template-deno-vue/deno.json +1 -1
  32. package/template-deno-vue/src/main.js +1 -1
  33. package/template-deno-vue-ts/deno.json +1 -1
  34. package/template-deno-vue-ts/src/main.ts +1 -1
  35. package/template-library/package.json +1 -1
  36. package/template-library-ts/package.json +2 -2
  37. package/template-library-ts/tsconfig.json +3 -2
  38. package/template-ssr-preact/package.json +1 -1
  39. package/template-ssr-preact/src/app.jsx +1 -1
  40. package/template-ssr-preact-ts/package.json +3 -3
  41. package/template-ssr-preact-ts/src/app.tsx +1 -1
  42. package/template-ssr-preact-ts/tsconfig.json +3 -2
  43. package/template-ssr-preact-ts/tsconfig.node.json +16 -3
  44. package/template-ssr-react/package.json +2 -2
  45. package/template-ssr-react/src/App.jsx +1 -1
  46. package/template-ssr-react-streaming/package.json +2 -2
  47. package/template-ssr-react-streaming/src/App.jsx +1 -1
  48. package/template-ssr-react-streaming-ts/package.json +4 -4
  49. package/template-ssr-react-streaming-ts/src/App.tsx +1 -1
  50. package/template-ssr-react-streaming-ts/tsconfig.json +4 -3
  51. package/template-ssr-react-streaming-ts/tsconfig.node.json +16 -3
  52. package/template-ssr-react-ts/package.json +4 -4
  53. package/template-ssr-react-ts/src/App.tsx +1 -1
  54. package/template-ssr-react-ts/tsconfig.json +4 -3
  55. package/template-ssr-react-ts/tsconfig.node.json +16 -3
  56. package/template-ssr-solid/package.json +1 -1
  57. package/template-ssr-solid/src/App.jsx +1 -1
  58. package/template-ssr-solid-ts/package.json +2 -2
  59. package/template-ssr-solid-ts/src/App.tsx +1 -1
  60. package/template-ssr-solid-ts/tsconfig.json +4 -3
  61. package/template-ssr-solid-ts/tsconfig.node.json +16 -3
  62. package/template-ssr-svelte/jsconfig.json +2 -3
  63. package/template-ssr-svelte/package.json +3 -3
  64. package/template-ssr-svelte/server.js +1 -1
  65. package/template-ssr-svelte/src/entry-client.js +2 -2
  66. package/template-ssr-svelte/src/entry-server.js +2 -2
  67. package/template-ssr-svelte/src/lib/Counter.svelte +2 -2
  68. package/template-ssr-svelte/vite.config.js +1 -7
  69. package/template-ssr-svelte-ts/package.json +8 -7
  70. package/template-ssr-svelte-ts/server.js +1 -1
  71. package/template-ssr-svelte-ts/src/entry-client.ts +3 -3
  72. package/template-ssr-svelte-ts/src/entry-server.ts +2 -2
  73. package/template-ssr-svelte-ts/src/lib/Counter.svelte +2 -2
  74. package/template-ssr-svelte-ts/tsconfig.json +2 -1
  75. package/template-ssr-svelte-ts/tsconfig.node.json +4 -1
  76. package/template-ssr-svelte-ts/vite.config.ts +1 -7
  77. package/template-ssr-transform/package.json +1 -1
  78. package/template-ssr-vanilla/package.json +1 -1
  79. package/template-ssr-vanilla-ts/package.json +3 -3
  80. package/template-ssr-vanilla-ts/tsconfig.json +3 -2
  81. package/template-ssr-vue/package.json +1 -1
  82. package/template-ssr-vue-streaming/package.json +1 -1
  83. package/template-ssr-vue-streaming-ts/package.json +3 -3
  84. package/template-ssr-vue-streaming-ts/tsconfig.json +5 -4
  85. package/template-ssr-vue-streaming-ts/tsconfig.node.json +16 -2
  86. package/template-ssr-vue-ts/package.json +5 -4
  87. package/template-ssr-vue-ts/tsconfig.json +5 -4
  88. package/template-ssr-vue-ts/tsconfig.node.json +16 -2
  89. package/template-ssr-react-streaming/package-lock.json +0 -2596
  90. package/template-ssr-svelte-ts/package-lock.json +0 -2376
  91. package/template-ssr-vue-streaming-ts/package-lock.json +0 -2346
@@ -20,8 +20,8 @@
20
20
  "devDependencies": {
21
21
  "@types/react": "^18.3.11",
22
22
  "@types/react-dom": "^18.3.1",
23
- "@vitejs/plugin-react": "^4.3.2",
23
+ "@vitejs/plugin-react": "^4.3.3",
24
24
  "cross-env": "^7.0.3",
25
- "vite": "^5.4.8"
25
+ "vite": "^5.4.9"
26
26
  }
27
27
  }
@@ -1,6 +1,6 @@
1
+ import './App.css'
1
2
  import { useState } from 'react'
2
3
  import reactLogo from './assets/react.svg'
3
- import './App.css'
4
4
 
5
5
  function App() {
6
6
  const [count, setCount] = useState(0)
@@ -18,8 +18,8 @@
18
18
  "sirv": "^3.0.0"
19
19
  },
20
20
  "devDependencies": {
21
- "@vitejs/plugin-react": "^4.3.2",
21
+ "@vitejs/plugin-react": "^4.3.3",
22
22
  "cross-env": "^7.0.3",
23
- "vite": "^5.4.8"
23
+ "vite": "^5.4.9"
24
24
  }
25
25
  }
@@ -1,6 +1,6 @@
1
+ import './App.css'
1
2
  import { Suspense, lazy } from 'react'
2
3
  import reactLogo from './assets/react.svg'
3
- import './App.css'
4
4
 
5
5
  // Works also with SSR as expected
6
6
  const Card = lazy(() => import('./Card'))
@@ -19,12 +19,12 @@
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/express": "^5.0.0",
22
- "@types/node": "^22.7.5",
22
+ "@types/node": "^22.7.7",
23
23
  "@types/react": "^18.3.11",
24
24
  "@types/react-dom": "^18.3.1",
25
- "@vitejs/plugin-react": "^4.3.2",
25
+ "@vitejs/plugin-react": "^4.3.3",
26
26
  "cross-env": "^7.0.3",
27
- "typescript": "^5.6.3",
28
- "vite": "^5.4.8"
27
+ "typescript": "~5.6.3",
28
+ "vite": "^5.4.9"
29
29
  }
30
30
  }
@@ -1,6 +1,6 @@
1
+ import './App.css'
1
2
  import { Suspense, lazy } from 'react'
2
3
  import reactLogo from './assets/react.svg'
3
- import './App.css'
4
4
 
5
5
  // Works also with SSR as expected
6
6
  const Card = lazy(() => import('./Card'))
@@ -2,15 +2,15 @@
2
2
  "compilerOptions": {
3
3
  "target": "ES2020",
4
4
  "useDefineForClassFields": true,
5
- "lib": ["ES2020", "DOM", "DOM.Iterable"],
6
5
  "module": "ESNext",
6
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
7
7
  "skipLibCheck": true,
8
8
 
9
9
  /* Bundler mode */
10
10
  "moduleResolution": "Bundler",
11
11
  "allowImportingTsExtensions": true,
12
- "resolveJsonModule": true,
13
12
  "isolatedModules": true,
13
+ "moduleDetection": "force",
14
14
  "noEmit": true,
15
15
  "jsx": "react-jsx",
16
16
 
@@ -18,7 +18,8 @@
18
18
  "strict": true,
19
19
  "noUnusedLocals": true,
20
20
  "noUnusedParameters": true,
21
- "noFallthroughCasesInSwitch": true
21
+ "noFallthroughCasesInSwitch": true,
22
+ "noUncheckedSideEffectImports": true
22
23
  },
23
24
  "include": ["src"],
24
25
  "references": [{ "path": "./tsconfig.node.json" }]
@@ -1,11 +1,24 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "composite": true,
4
- "skipLibCheck": true,
4
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
5
+ "target": "ES2022",
6
+ "lib": ["ES2023"],
5
7
  "module": "ESNext",
8
+ "skipLibCheck": true,
9
+
10
+ /* Bundler mode */
6
11
  "moduleResolution": "Bundler",
7
- "allowSyntheticDefaultImports": true,
8
- "jsx": "preserve"
12
+ "allowImportingTsExtensions": true,
13
+ "isolatedModules": true,
14
+ "moduleDetection": "force",
15
+
16
+ /* Linting */
17
+ "strict": true,
18
+ "noUnusedLocals": true,
19
+ "noUnusedParameters": true,
20
+ "noFallthroughCasesInSwitch": true,
21
+ "noUncheckedSideEffectImports": true
9
22
  },
10
23
  "include": ["vite.config.ts"]
11
24
  }
@@ -19,12 +19,12 @@
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/express": "^5.0.0",
22
- "@types/node": "^22.7.5",
22
+ "@types/node": "^22.7.7",
23
23
  "@types/react": "^18.3.11",
24
24
  "@types/react-dom": "^18.3.1",
25
- "@vitejs/plugin-react": "^4.3.2",
25
+ "@vitejs/plugin-react": "^4.3.3",
26
26
  "cross-env": "^7.0.3",
27
- "typescript": "^5.6.3",
28
- "vite": "^5.4.8"
27
+ "typescript": "~5.6.3",
28
+ "vite": "^5.4.9"
29
29
  }
30
30
  }
@@ -1,6 +1,6 @@
1
+ import './App.css'
1
2
  import { useState } from 'react'
2
3
  import reactLogo from './assets/react.svg'
3
- import './App.css'
4
4
 
5
5
  function App() {
6
6
  const [count, setCount] = useState(0)
@@ -2,15 +2,15 @@
2
2
  "compilerOptions": {
3
3
  "target": "ES2020",
4
4
  "useDefineForClassFields": true,
5
- "lib": ["ES2020", "DOM", "DOM.Iterable"],
6
5
  "module": "ESNext",
6
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
7
7
  "skipLibCheck": true,
8
8
 
9
9
  /* Bundler mode */
10
10
  "moduleResolution": "Bundler",
11
11
  "allowImportingTsExtensions": true,
12
- "resolveJsonModule": true,
13
12
  "isolatedModules": true,
13
+ "moduleDetection": "force",
14
14
  "noEmit": true,
15
15
  "jsx": "react-jsx",
16
16
 
@@ -18,7 +18,8 @@
18
18
  "strict": true,
19
19
  "noUnusedLocals": true,
20
20
  "noUnusedParameters": true,
21
- "noFallthroughCasesInSwitch": true
21
+ "noFallthroughCasesInSwitch": true,
22
+ "noUncheckedSideEffectImports": true
22
23
  },
23
24
  "include": ["src"],
24
25
  "references": [{ "path": "./tsconfig.node.json" }]
@@ -1,11 +1,24 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "composite": true,
4
- "skipLibCheck": true,
4
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
5
+ "target": "ES2022",
6
+ "lib": ["ES2023"],
5
7
  "module": "ESNext",
8
+ "skipLibCheck": true,
9
+
10
+ /* Bundler mode */
6
11
  "moduleResolution": "Bundler",
7
- "allowSyntheticDefaultImports": true,
8
- "jsx": "preserve"
12
+ "allowImportingTsExtensions": true,
13
+ "isolatedModules": true,
14
+ "moduleDetection": "force",
15
+
16
+ /* Linting */
17
+ "strict": true,
18
+ "noUnusedLocals": true,
19
+ "noUnusedParameters": true,
20
+ "noFallthroughCasesInSwitch": true,
21
+ "noUncheckedSideEffectImports": true
9
22
  },
10
23
  "include": ["vite.config.ts"]
11
24
  }
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "devDependencies": {
20
20
  "cross-env": "^7.0.3",
21
- "vite": "^5.4.8",
21
+ "vite": "^5.4.9",
22
22
  "vite-plugin-solid": "^2.10.2"
23
23
  }
24
24
  }
@@ -1,6 +1,6 @@
1
+ import './App.css'
1
2
  import { createSignal } from 'solid-js'
2
3
  import solidLogo from './assets/solid.svg'
3
- import './App.css'
4
4
 
5
5
  function App() {
6
6
  const [count, setCount] = createSignal(0)
@@ -18,9 +18,9 @@
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/express": "^5.0.0",
21
- "@types/node": "^22.7.5",
21
+ "@types/node": "^22.7.7",
22
22
  "cross-env": "^7.0.3",
23
- "vite": "^5.4.8",
23
+ "vite": "^5.4.9",
24
24
  "vite-plugin-solid": "^2.10.2"
25
25
  }
26
26
  }
@@ -1,6 +1,6 @@
1
+ import './App.css'
1
2
  import { createSignal } from 'solid-js'
2
3
  import solidLogo from './assets/solid.svg'
3
- import './App.css'
4
4
 
5
5
  function App() {
6
6
  const [count, setCount] = createSignal(0)
@@ -2,15 +2,15 @@
2
2
  "compilerOptions": {
3
3
  "target": "ES2020",
4
4
  "useDefineForClassFields": true,
5
- "lib": ["ES2020", "DOM", "DOM.Iterable"],
6
5
  "module": "ESNext",
6
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
7
7
  "skipLibCheck": true,
8
8
 
9
9
  /* Bundler mode */
10
10
  "moduleResolution": "Bundler",
11
11
  "allowImportingTsExtensions": true,
12
- "resolveJsonModule": true,
13
12
  "isolatedModules": true,
13
+ "moduleDetection": "force",
14
14
  "noEmit": true,
15
15
  "jsx": "preserve",
16
16
  "jsxImportSource": "solid-js",
@@ -19,7 +19,8 @@
19
19
  "strict": true,
20
20
  "noUnusedLocals": true,
21
21
  "noUnusedParameters": true,
22
- "noFallthroughCasesInSwitch": true
22
+ "noFallthroughCasesInSwitch": true,
23
+ "noUncheckedSideEffectImports": true
23
24
  },
24
25
  "include": ["src"],
25
26
  "references": [{ "path": "./tsconfig.node.json" }]
@@ -1,11 +1,24 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "composite": true,
4
- "skipLibCheck": true,
4
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
5
+ "target": "ES2022",
6
+ "lib": ["ES2023"],
5
7
  "module": "ESNext",
8
+ "skipLibCheck": true,
9
+
10
+ /* Bundler mode */
6
11
  "moduleResolution": "Bundler",
7
- "allowSyntheticDefaultImports": true,
8
- "jsx": "preserve"
12
+ "allowImportingTsExtensions": true,
13
+ "isolatedModules": true,
14
+ "moduleDetection": "force",
15
+
16
+ /* Linting */
17
+ "strict": true,
18
+ "noUnusedLocals": true,
19
+ "noUnusedParameters": true,
20
+ "noFallthroughCasesInSwitch": true,
21
+ "noUncheckedSideEffectImports": true
9
22
  },
10
23
  "include": ["vite.config.ts"]
11
24
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "moduleResolution": "Node",
3
+ "moduleResolution": "Bundler",
4
4
  "target": "ESNext",
5
5
  "module": "ESNext",
6
6
  /**
@@ -8,7 +8,7 @@
8
8
  * a value or a type, so tell TypeScript to enforce using
9
9
  * `import type` instead of `import` for Types.
10
10
  */
11
- "importsNotUsedAsValues": "error",
11
+ "verbatimModuleSyntax": true,
12
12
  "isolatedModules": true,
13
13
  "resolveJsonModule": true,
14
14
  /**
@@ -18,7 +18,6 @@
18
18
  "sourceMap": true,
19
19
  "esModuleInterop": true,
20
20
  "skipLibCheck": true,
21
- "forceConsistentCasingInFileNames": true,
22
21
  /**
23
22
  * Typecheck JS in `.svelte` and `.js` files by default.
24
23
  * Disable this if you'd like to use dynamic types.
@@ -16,9 +16,9 @@
16
16
  "sirv": "^3.0.0"
17
17
  },
18
18
  "devDependencies": {
19
- "@sveltejs/vite-plugin-svelte": "^3.1.2",
19
+ "@sveltejs/vite-plugin-svelte": "^4.0.0",
20
20
  "cross-env": "^7.0.3",
21
- "svelte": "^4.2.19",
22
- "vite": "^5.4.8"
21
+ "svelte": "^5.0.3",
22
+ "vite": "^5.4.9"
23
23
  }
24
24
  }
@@ -55,7 +55,7 @@ app.use('*all', async (req, res) => {
55
55
 
56
56
  const html = template
57
57
  .replace(`<!--app-head-->`, rendered.head ?? '')
58
- .replace(`<!--app-html-->`, rendered.html ?? '')
58
+ .replace(`<!--app-html-->`, rendered.body ?? '')
59
59
 
60
60
  res.status(200).set({ 'Content-Type': 'text/html' }).send(html)
61
61
  } catch (e) {
@@ -1,7 +1,7 @@
1
1
  import './app.css'
2
+ import { hydrate } from 'svelte'
2
3
  import App from './App.svelte'
3
4
 
4
- new App({
5
+ hydrate(App, {
5
6
  target: document.getElementById('app'),
6
- hydrate: true,
7
7
  })
@@ -1,6 +1,6 @@
1
+ import { render as _render } from 'svelte/server'
1
2
  import App from './App.svelte'
2
3
 
3
4
  export function render() {
4
- // @ts-ignore
5
- return App.render()
5
+ return _render(App)
6
6
  }
@@ -1,10 +1,10 @@
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>
@@ -3,11 +3,5 @@ import { svelte } from '@sveltejs/vite-plugin-svelte'
3
3
 
4
4
  // https://vite.dev/config/
5
5
  export default defineConfig({
6
- plugins: [
7
- svelte({
8
- compilerOptions: {
9
- hydratable: true,
10
- },
11
- }),
12
- ],
6
+ plugins: [svelte()],
13
7
  })
@@ -8,7 +8,8 @@
8
8
  "build": "npm run build:client && npm run build:server",
9
9
  "build:client": "vite build --ssrManifest --outDir dist/client",
10
10
  "build:server": "vite build --ssr src/entry-server.ts --outDir dist/server",
11
- "preview": "cross-env NODE_ENV=production node server"
11
+ "preview": "cross-env NODE_ENV=production node server",
12
+ "check": "svelte-check"
12
13
  },
13
14
  "dependencies": {
14
15
  "compression": "^1.7.4",
@@ -16,15 +17,15 @@
16
17
  "sirv": "^3.0.0"
17
18
  },
18
19
  "devDependencies": {
19
- "@sveltejs/vite-plugin-svelte": "^3.1.2",
20
+ "@sveltejs/vite-plugin-svelte": "^4.0.0",
20
21
  "@tsconfig/svelte": "^5.0.4",
21
22
  "@types/express": "^5.0.0",
22
- "@types/node": "^22.7.5",
23
+ "@types/node": "^22.7.7",
23
24
  "cross-env": "^7.0.3",
24
- "svelte": "^4.2.19",
25
+ "svelte": "^5.0.3",
25
26
  "svelte-check": "^4.0.5",
26
- "tslib": "^2.7.0",
27
- "typescript": "^5.6.3",
28
- "vite": "^5.4.8"
27
+ "tslib": "^2.8.0",
28
+ "typescript": "~5.6.3",
29
+ "vite": "^5.4.9"
29
30
  }
30
31
  }
@@ -55,7 +55,7 @@ app.use('*all', async (req, res) => {
55
55
 
56
56
  const html = template
57
57
  .replace(`<!--app-head-->`, rendered.head ?? '')
58
- .replace(`<!--app-html-->`, rendered.html ?? '')
58
+ .replace(`<!--app-html-->`, rendered.body ?? '')
59
59
 
60
60
  res.status(200).set({ 'Content-Type': 'text/html' }).send(html)
61
61
  } catch (e) {
@@ -1,7 +1,7 @@
1
1
  import './app.css'
2
+ import { hydrate } from 'svelte'
2
3
  import App from './App.svelte'
3
4
 
4
- new App({
5
- target: document.getElementById('app'),
6
- hydrate: true,
5
+ hydrate(App, {
6
+ target: document.getElementById('app')!,
7
7
  })
@@ -1,6 +1,6 @@
1
+ import { render as _render } from 'svelte/server'
1
2
  import App from './App.svelte'
2
3
 
3
4
  export function render() {
4
- // @ts-ignore
5
- return App.render()
5
+ return _render(App)
6
6
  }
@@ -1,10 +1,10 @@
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>
@@ -13,7 +13,8 @@
13
13
  */
14
14
  "allowJs": true,
15
15
  "checkJs": true,
16
- "isolatedModules": true
16
+ "isolatedModules": true,
17
+ "moduleDetection": "force"
17
18
  },
18
19
  "include": ["src/**/*.ts", "src/**/*.js", "src/**/*.svelte"],
19
20
  "references": [{ "path": "./tsconfig.node.json" }]
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "composite": true,
4
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
4
5
  "skipLibCheck": true,
5
6
  "module": "ESNext",
6
- "moduleResolution": "bundler"
7
+ "moduleResolution": "Bundler",
8
+ "strict": true,
9
+ "noUncheckedSideEffectImports": true
7
10
  },
8
11
  "include": ["vite.config.ts"]
9
12
  }
@@ -3,11 +3,5 @@ import { svelte } from '@sveltejs/vite-plugin-svelte'
3
3
 
4
4
  // https://vite.dev/config/
5
5
  export default defineConfig({
6
- plugins: [
7
- svelte({
8
- compilerOptions: {
9
- hydratable: true,
10
- },
11
- }),
12
- ],
6
+ plugins: [svelte()],
13
7
  })
@@ -7,6 +7,6 @@
7
7
  "test": "node test"
8
8
  },
9
9
  "devDependencies": {
10
- "vite": "^5.4.8"
10
+ "vite": "^5.4.9"
11
11
  }
12
12
  }
@@ -17,6 +17,6 @@
17
17
  },
18
18
  "devDependencies": {
19
19
  "cross-env": "^7.0.3",
20
- "vite": "^5.4.8"
20
+ "vite": "^5.4.9"
21
21
  }
22
22
  }
@@ -17,9 +17,9 @@
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/express": "^5.0.0",
20
- "@types/node": "^22.7.5",
20
+ "@types/node": "^22.7.7",
21
21
  "cross-env": "^7.0.3",
22
- "typescript": "^5.6.3",
23
- "vite": "^5.4.8"
22
+ "typescript": "~5.6.3",
23
+ "vite": "^5.4.9"
24
24
  }
25
25
  }
@@ -9,15 +9,16 @@
9
9
  /* Bundler mode */
10
10
  "moduleResolution": "Bundler",
11
11
  "allowImportingTsExtensions": true,
12
- "resolveJsonModule": true,
13
12
  "isolatedModules": true,
13
+ "moduleDetection": "force",
14
14
  "noEmit": true,
15
15
 
16
16
  /* Linting */
17
17
  "strict": true,
18
18
  "noUnusedLocals": true,
19
19
  "noUnusedParameters": true,
20
- "noFallthroughCasesInSwitch": true
20
+ "noFallthroughCasesInSwitch": true,
21
+ "noUncheckedSideEffectImports": true
21
22
  },
22
23
  "include": ["src"]
23
24
  }
@@ -19,6 +19,6 @@
19
19
  "devDependencies": {
20
20
  "@vitejs/plugin-vue": "^5.1.4",
21
21
  "cross-env": "^7.0.3",
22
- "vite": "^5.4.8"
22
+ "vite": "^5.4.9"
23
23
  }
24
24
  }
@@ -19,6 +19,6 @@
19
19
  "devDependencies": {
20
20
  "@vitejs/plugin-vue": "^5.1.4",
21
21
  "cross-env": "^7.0.3",
22
- "vite": "^5.4.8"
22
+ "vite": "^5.4.9"
23
23
  }
24
24
  }
@@ -18,11 +18,11 @@
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/express": "^5.0.0",
21
- "@types/node": "^22.7.5",
21
+ "@types/node": "^22.7.7",
22
22
  "@vitejs/plugin-vue": "^5.1.4",
23
23
  "cross-env": "^7.0.3",
24
- "typescript": "^5.6.3",
25
- "vite": "^5.4.8",
24
+ "typescript": "~5.6.3",
25
+ "vite": "^5.4.9",
26
26
  "vue-tsc": "^2.1.6"
27
27
  }
28
28
  }
@@ -2,15 +2,15 @@
2
2
  "compilerOptions": {
3
3
  "target": "ES2020",
4
4
  "useDefineForClassFields": true,
5
- "module": "ESNext",
6
5
  "lib": ["ES2020", "DOM", "DOM.Iterable"],
6
+ "module": "ESNext",
7
7
  "skipLibCheck": true,
8
8
 
9
9
  /* Bundler mode */
10
- "moduleResolution": "Bundler",
10
+ "moduleResolution": "bundler",
11
11
  "allowImportingTsExtensions": true,
12
- "resolveJsonModule": true,
13
12
  "isolatedModules": true,
13
+ "moduleDetection": "force",
14
14
  "noEmit": true,
15
15
  "jsx": "preserve",
16
16
 
@@ -18,7 +18,8 @@
18
18
  "strict": true,
19
19
  "noUnusedLocals": true,
20
20
  "noUnusedParameters": true,
21
- "noFallthroughCasesInSwitch": true
21
+ "noFallthroughCasesInSwitch": true,
22
+ "noUncheckedSideEffectImports": true
22
23
  },
23
24
  "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"],
24
25
  "references": [{ "path": "./tsconfig.node.json" }]