Repository: sveltejs/kit
Pull request #9434 (2023-03-17 07:13:36)

chore: upgrade to Vite 4.2
Runs our tests against Vite 4.2, which should reduce test flakiness since https://github.com/vitejs/vite/issues/9986 was fixed

Also updates `create-svelte` to 4.2 though shouldn't make much of a difference there since users would already be getting the latest since we have `^` in the version

changeset-bot[bot]: ###  🦋  Changeset detected

Latest commit: 60a9a2e058dbd469168c4ca4ec497f6d32937032

**The changes in this PR will be included in the next version bump.**

<details><summary>This PR includes changesets to release 1 package</summary>

  | Name          | Type  |
| ------------- | ----- |
| @sveltejs/kit | Patch |

</details>

Not sure what this means? [Click here  to learn what changesets are](https://github.com/changesets/changesets/blob/master/docs/adding-a-changeset.md).

[Click here if you're a maintainer who wants to add another changeset to this PR](https://github.com/sveltejs/kit/new/vite-4.2?filename=.changeset/clean-zoos-knock.md&value=---%0A%22%40sveltejs%2Fadapter-static%22%3A%20patch%0A%22create-svelte%22%3A%20patch%0A%22%40sveltejs%2Fkit%22%3A%20patch%0A%22kit.svelte.dev%22%3A%20patch%0A%22~TODO~%22%3A%20patch%0A%22~TODO~%22%3A%20patch%0A%22test-amp%22%3A%20patch%0A%22test-basics%22%3A%20patch%0A%22test-basics%22%3A%20patch%0A%22test-options-2%22%3A%20patch%0A%22test-options%22%3A%20patch%0A%22test-writes%22%3A%20patch%0A%22prerendering-test-basics%22%3A%20patch%0A%22prerendering-test-options%22%3A%20patch%0A%22prerendering-test-paths-base%22%3A%20patch%0A%22prerenderable-incorrect-fragment%22%3A%20patch%0A%22prerenderable-not-prerendered%22%3A%20patch%0A%22private-dynamic-env-dynamic-import%22%3A%20patch%0A%22private-dynamic-env%22%3A%20patch%0A%22private-static-env-dynamic-import%22%3A%20patch%0A%22private-static-env%22%3A%20patch%0A%22server-only-folder-dynamic-import%22%3A%20patch%0A%22server-only-folder%22%3A%20patch%0A%22server-only-module-dynamic-import%22%3A%20patch%0A%22server-only-module%22%3A%20patch%0A%22syntax-error%22%3A%20patch%0A%22default-template%22%3A%20patch%0A---%0A%0Achore%3A%20upgrade%20to%20Vite%204.2%0A)



Patch:
diff --git a/.changeset/forty-suns-listen.md b/.changeset/forty-suns-listen.md
deleted file mode 100644
index 1fc590514..000000000
--- a/.changeset/forty-suns-listen.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@sveltejs/adapter-vercel': minor
----
-
-feat: warn when prerender setting makes isr config useless
diff --git a/.changeset/gentle-vans-kick.md b/.changeset/gentle-vans-kick.md
new file mode 100644
index 000000000..fe55d20ce
--- /dev/null
+++ b/.changeset/gentle-vans-kick.md
@@ -0,0 +1,5 @@
+---
+'create-svelte': patch
+---
+
+chore: upgrade to Vite 4.2
diff --git a/.changeset/lucky-paws-work.md b/.changeset/lucky-paws-work.md
new file mode 100644
index 000000000..f08cdfd77
--- /dev/null
+++ b/.changeset/lucky-paws-work.md
@@ -0,0 +1,5 @@
+---
+'@sveltejs/kit': patch
+---
+
+fix: recover from errors during dev by reloading
diff --git a/.changeset/polite-islands-glow.md b/.changeset/polite-islands-glow.md
deleted file mode 100644
index 3cdfd4334..000000000
--- a/.changeset/polite-islands-glow.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@sveltejs/adapter-vercel': patch
----
-
-fix: don't show cron warning when everything's valid
diff --git a/.changeset/tasty-comics-give.md b/.changeset/tasty-comics-give.md
new file mode 100644
index 000000000..cffe75857
--- /dev/null
+++ b/.changeset/tasty-comics-give.md
@@ -0,0 +1,5 @@
+---
+'@sveltejs/kit': minor
+---
+
+feat: add dark mode styles to default error page
diff --git a/.changeset/tasty-weeks-rush.md b/.changeset/tasty-weeks-rush.md
deleted file mode 100644
index 49ff12af8..000000000
--- a/.changeset/tasty-weeks-rush.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@sveltejs/adapter-vercel': patch
----
-
-fix: allow to set isr to false to clear isr config in leafs
diff --git a/package.json b/package.json
index 530a02c23..b03852af8 100644
--- a/package.json
+++ b/package.json
@@ -41,7 +41,7 @@
 		"tiny-glob": "^0.2.9",
 		"typescript": "^4.9.4"
 	},
-	"packageManager": "pnpm@7.29.3",
+	"packageManager": "pnpm@7.30.0",
 	"engines": {
 		"pnpm": "^7.0.0"
 	},
diff --git a/packages/adapter-static/package.json b/packages/adapter-static/package.json
index 455f0f561..0c64fa1ac 100644
--- a/packages/adapter-static/package.json
+++ b/packages/adapter-static/package.json
@@ -35,7 +35,7 @@
 		"svelte": "^3.56.0",
 		"typescript": "^4.9.4",
 		"uvu": "^0.5.6",
-		"vite": "^4.1.1"
+		"vite": "^4.2.0"
 	},
 	"peerDependencies": {
 		"@sveltejs/kit": "^1.5.0"
diff --git a/packages/adapter-vercel/CHANGELOG.md b/packages/adapter-vercel/CHANGELOG.md
index 68e4005f0..a2bdcf0b6 100644
--- a/packages/adapter-vercel/CHANGELOG.md
+++ b/packages/adapter-vercel/CHANGELOG.md
@@ -1,5 +1,17 @@
 # @sveltejs/adapter-vercel
 
+## 2.4.0
+
+### Minor Changes
+
+- feat: warn when prerender setting makes isr config useless ([#9436](https://github.com/sveltejs/kit/pull/9436))
+
+### Patch Changes
+
+- fix: don't show cron warning when everything's valid ([#9436](https://github.com/sveltejs/kit/pull/9436))
+
+- fix: allow to set isr to false to clear isr config in leafs ([#9436](https://github.com/sveltejs/kit/pull/9436))
+
 ## 2.3.2
 
 ### Patch Changes
diff --git a/packages/adapter-vercel/package.json b/packages/adapter-vercel/package.json
index a74866c8a..54f522efe 100644
--- a/packages/adapter-vercel/package.json
+++ b/packages/adapter-vercel/package.json
@@ -1,6 +1,6 @@
 {
 	"name": "@sveltejs/adapter-vercel",
-	"version": "2.3.2",
+	"version": "2.4.0",
 	"repository": {
 		"type": "git",
 		"url": "https://github.com/sveltejs/kit",
diff --git a/packages/create-svelte/templates/default/package.json b/packages/create-svelte/templates/default/package.json
index 7fc85ced9..25eea4a4f 100644
--- a/packages/create-svelte/templates/default/package.json
+++ b/packages/create-svelte/templates/default/package.json
@@ -13,7 +13,7 @@
 		"@sveltejs/kit": "workspace:*",
 		"svelte": "^3.56.0",
 		"typescript": "^4.9.4",
-		"vite": "^4.1.1"
+		"vite": "^4.2.0"
 	},
 	"type": "module",
 	"dependencies": {
diff --git a/packages/create-svelte/templates/default/package.template.json b/packages/create-svelte/templates/default/package.template.json
index ba275c98b..a5c6da443 100644
--- a/packages/create-svelte/templates/default/package.template.json
+++ b/packages/create-svelte/templates/default/package.template.json
@@ -12,7 +12,7 @@
 		"@sveltejs/adapter-auto": "^2.0.0",
 		"@sveltejs/kit": "^1.5.0",
 		"svelte": "^3.54.0",
-		"vite": "^4.0.0"
+		"vite": "^4.2.0"
 	},
 	"type": "module"
 }
diff --git a/packages/create-svelte/templates/skeleton/package.template.json b/packages/create-svelte/templates/skeleton/package.template.json
index ade770421..53056f1d7 100644
--- a/packages/create-svelte/templates/skeleton/package.template.json
+++ b/packages/create-svelte/templates/skeleton/package.template.json
@@ -11,7 +11,7 @@
 		"@sveltejs/adapter-auto": "^2.0.0",
 		"@sveltejs/kit": "^1.5.0",
 		"svelte": "^3.54.0",
-		"vite": "^4.0.0"
+		"vite": "^4.2.0"
 	},
 	"type": "module"
 }
diff --git a/packages/create-svelte/templates/skeletonlib/package.template.json b/packages/create-svelte/templates/skeletonlib/package.template.json
index 68d708070..25fd6e8ed 100644
--- a/packages/create-svelte/templates/skeletonlib/package.template.json
+++ b/packages/create-svelte/templates/skeletonlib/package.template.json
@@ -26,7 +26,7 @@
 		"svelte": "^3.54.0",
 		"tslib": "^2.4.1",
 		"typescript": "^4.9.3",
-		"vite": "^4.0.0"
+		"vite": "^4.2.0"
 	},
 	"svelte": "./dist/index.js",
 	"types": "./dist/index.d.ts",
diff --git a/packages/kit/package.json b/packages/kit/package.json
index cd37f4125..358ea8240 100644
--- a/packages/kit/package.json
+++ b/packages/kit/package.json
@@ -38,7 +38,7 @@
 		"svelte-preprocess": "^5.0.0",
 		"typescript": "^4.9.4",
 		"uvu": "^0.5.6",
-		"vite": "^4.1.1"
+		"vite": "^4.2.0"
 	},
 	"peerDependencies": {
 		"svelte": "^3.54.0",
diff --git a/packages/kit/src/core/config/default-error.html b/packages/kit/src/core/config/default-error.html
index 665b091bc..bfb3d9c80 100644
--- a/packages/kit/src/core/config/default-error.html
+++ b/packages/kit/src/core/config/default-error.html
@@ -6,6 +6,11 @@
 
 		<style>
 			body {
+				--bg: white;
+				--fg: #222;
+				--divider: #ccc;
+				background: var(--bg);
+				color: var(--fg);
 				font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
 					Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
 				display: flex;
@@ -30,7 +35,7 @@
 			}
 
 			.message {
-				border-left: 1px solid #ccc;
+				border-left: 1px solid var(--divider);
 				padding: 0 0 0 1rem;
 				margin: 0 0 0 1rem;
 				min-height: 2.5rem;
@@ -43,6 +48,14 @@
 				font-size: 1em;
 				margin: 0;
 			}
+
+			@media (prefers-color-scheme: dark) {
+				body {
+					--bg: #222;
+					--fg: #ddd;
+					--divider: #666;
+				}
+			}
 		</style>
 	</head>
 	<body>
diff --git a/packages/kit/src/runtime/client/client.js b/packages/kit/src/runtime/client/client.js
index 09cb02e14..a049d2d3e 100644
--- a/packages/kit/src/runtime/client/client.js
+++ b/packages/kit/src/runtime/client/client.js
@@ -35,6 +35,8 @@ import { validate_common_exports } from '../../utils/exports.js';
 import { compact } from '../../utils/array.js';
 import { validate_depends } from '../shared.js';
 
+let errored = false;
+
 // We track the scroll position associated with each history entry in sessionStorage,
 // rather than on history.state itself, because when navigation is driven by
 // popstate it's too late to update the scroll position associated with the
@@ -1193,7 +1195,7 @@ export function create_client(app, target) {
 			});
 		}
 
-		if (__SVELTEKIT_DEV__ && status !== 404) {
+		if (DEV && status !== 404) {
 			console.error(
 				'An error occurred while loading the page. This will cause a full page reload. (This message will only appear during development.)'
 			);
@@ -1273,7 +1275,7 @@ export function create_client(app, target) {
 				if (priority <= options.preload_data) {
 					const intent = get_navigation_intent(/** @type {URL} */ (url), false);
 					if (intent) {
-						if (__SVELTEKIT_DEV__) {
+						if (DEV) {
 							preload_data(intent).then((result) => {
 								if (result.type === 'loaded' && result.state.error) {
 									console.warn(
@@ -1327,6 +1329,12 @@ export function create_client(app, target) {
 		if (error instanceof HttpError) {
 			return error.body;
 		}
+
+		if (DEV) {
+			errored = true;
+			console.warn('The next HMR update will cause the page to reload');
+		}
+
 		return (
 			app.hooks.handleError({ error, event }) ??
 			/** @type {any} */ ({ message: event.route.id != null ? 'Internal Error' : 'Not Found' })
@@ -1947,4 +1955,12 @@ if (DEV) {
 		}
 		console_warn(...args);
 	};
+
+	if (import.meta.hot) {
+		import.meta.hot.on('vite:beforeUpdate', () => {
+			if (errored) {
+				location.reload();
+			}
+		});
+	}
 }
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 44ffd2bfd..16f164ffc 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -153,7 +153,7 @@ importers:
       svelte: ^3.56.0
       typescript: ^4.9.4
       uvu: ^0.5.6
-      vite: ^4.1.1
+      vite: ^4.2.0
     devDependencies:
       '@sveltejs/kit': link:../kit
       '@types/node': 16.18.6
@@ -161,17 +161,17 @@ importers:
       svelte: 3.56.0
       typescript: 4.9.4
       uvu: 0.5.6
-      vite: 4.1.1_@types+node@16.18.6
+      vite: 4.2.0_@types+node@16.18.6
 
   packages/adapter-static/test/apps/prerendered:
     specifiers:
       '@sveltejs/kit': workspace:^
       svelte: ^3.56.0
-      vite: ^4.1.1
+      vite: ^4.2.0
     devDependencies:
       '@sveltejs/kit': link:../../../../kit
       svelte: 3.56.0
-      vite: 4.1.1
+      vite: 4.2.0
 
   packages/adapter-static/test/apps/spa:
     specifiers:
@@ -179,13 +179,13 @@ importers:
       '@sveltejs/kit': workspace:^
       sirv-cli: ^2.0.2
       svelte: ^3.56.0
-      vite: ^4.1.1
+      vite: ^4.2.0
     devDependencies:
       '@sveltejs/adapter-node': link:../../../../adapter-node
       '@sveltejs/kit': link:../../../../kit
       sirv-cli: 2.0.2
       svelte: 3.56.0
-      vite: 4.1.1
+      vite: 4.2.0
 
   packages/adapter-vercel:
     specifiers:
@@ -244,7 +244,7 @@ importers:
       '@sveltejs/kit': workspace:*
       svelte: ^3.56.0
       typescript: ^4.9.4
-      vite: ^4.1.1
+      vite: ^4.2.0
     dependencies:
       '@fontsource/fira-mono': 4.5.10
     devDependencies:
@@ -253,7 +253,7 @@ importers:
       '@sveltejs/kit': link:../../../kit
       svelte: 3.56.0
       typescript: 4.9.4
-      vite: 4.1.1
+      vite: 4.2.0
 
   packages/create-svelte/templates/skeleton:
     specifiers:
@@ -289,9 +289,9 @@ importers:
       typescript: ^4.9.4
       undici: 5.21.0
       uvu: ^0.5.6
-      vite: ^4.1.1
+      vite: ^4.2.0
     dependencies:
-      '@sveltejs/vite-plugin-svelte': 2.0.0_svelte@3.56.0+vite@4.1.1
+      '@sveltejs/vite-plugin-svelte': 2.0.0_svelte@3.56.0+vite@4.2.0
       '@types/cookie': 0.5.1
       cookie: 0.5.0
       devalue: 4.3.0
@@ -318,7 +318,7 @@ importers:
       svelte-preprocess: 5.0.0_llpdtttxqmim2s7ymcc5fxs7oi
       typescript: 4.9.4
       uvu: 0.5.6
-      vite: 4.1.1_@types+node@16.18.6
+      vite: 4.2.0_@types+node@16.18.6
 
   packages/kit/test/apps/amp:
     specifiers:
@@ -329,7 +329,7 @@ importers:
       svelte: ^3.56.0
       svelte-check: ^3.0.2
       typescript: ^4.9.4
-      vite: ^4.1.1
+      vite: ^4.2.0
     devDependencies:
       '@sveltejs/amp': link:../../../../amp
       '@sveltejs/kit': link:../../..
@@ -338,7 +338,7 @@ importers:
       svelte: 3.56.0
       svelte-check: 3.0.2_svelte@3.56.0
       typescript: 4.9.4
-      vite: 4.1.1
+      vite: 4.2.0
 
   packages/kit/test/apps/basics:
     specifiers:
@@ -348,7 +348,7 @@ importers:
       svelte: ^3.56.0
       svelte-check: ^3.0.2
       typescript: ^4.9.4
-      vite: ^4.1.1
+      vite: ^4.2.0
     devDependencies:
       '@sveltejs/kit': link:../../..
       cross-env: 7.0.3
@@ -356,7 +356,7 @@ importers:
       svelte: 3.56.0
       svelte-check: 3.0.2_svelte@3.56.0
       typescript: 4.9.4
-      vite: 4.1.1
+      vite: 4.2.0
 
   packages/kit/test/apps/dev-only:
     specifiers:
@@ -365,14 +365,14 @@ importers:
       svelte: ^3.56.0
       svelte-check: ^3.0.2
       typescript: ^4.9.4
-      vite: ^4.1.1
+      vite: ^4.2.0
     devDependencies:
       '@sveltejs/kit': link:../../..
       cross-env: 7.0.3
       svelte: 3.56.0
       svelte-check: 3.0.2_svelte@3.56.0
       typescript: 4.9.4
-      vite: 4.1.1
+      vite: 4.2.0
 
   packages/kit/test/apps/options:
     specifiers:
@@ -381,14 +381,14 @@ importers:
       svelte: ^3.56.0
       svelte-check: ^3.0.2
       typescript: ^4.9.4
-      vite: ^4.1.1
+      vite: ^4.2.0
     devDependencies:
       '@sveltejs/kit': link:../../..
       cross-env: 7.0.3
       svelte: 3.56.0
       svelte-check: 3.0.2_svelte@3.56.0
       typescript: 4.9.4
-      vite: 4.1.1
+      vite: 4.2.0
 
   packages/kit/test/apps/options-2:
     specifiers:
@@ -398,7 +398,7 @@ importers:
       svelte: ^3.56.0
       svelte-check: ^3.0.2
       typescript: ^4.9.4
-      vite: ^4.1.1
+      vite: ^4.2.0
     devDependencies:
       '@sveltejs/adapter-node': link:../../../../adapter-node
       '@sveltejs/kit': link:../../..
@@ -406,7 +406,7 @@ importers:
       svelte: 3.56.0
       svelte-check: 3.0.2_svelte@3.56.0
       typescript: 4.9.4
-      vite: 4.1.1
+      vite: 4.2.0
 
   packages/kit/test/apps/writes:
     specifiers:
@@ -416,7 +416,7 @@ importers:
       svelte: ^3.56.0
       svelte-check: ^3.0.2
       typescript: ^4.9.4
-      vite: ^4.1.1
+      vite: ^4.2.0
     devDependencies:
       '@sveltejs/kit': link:../../..
       cross-env: 7.0.3
@@ -424,7 +424,7 @@ importers:
       svelte: 3.56.0
       svelte-check: 3.0.2_svelte@3.56.0
       typescript: 4.9.4
-      vite: 4.1.1
+      vite: 4.2.0
 
   packages/kit/test/build-errors:
     specifiers:
@@ -439,14 +439,14 @@ importers:
       svelte: ^3.56.0
       svelte-check: ^3.0.2
       typescript: ^4.9.4
-      vite: ^4.1.1
+      vite: ^4.2.0
     devDependencies:
       '@sveltejs/adapter-auto': link:../../../../../adapter-auto
       '@sveltejs/kit': link:../../../..
       svelte: 3.56.0
       svelte-check: 3.0.2_svelte@3.56.0
       typescript: 4.9.4
-      vite: 4.1.1
+      vite: 4.2.0
 
   packages/kit/test/build-errors/apps/prerenderable-not-prerendered:
     specifiers:
@@ -455,14 +455,14 @@ importers:
       svelte: ^3.56.0
       svelte-check: ^3.0.2
       typescript: ^4.9.4
-      vite: ^4.1.1
+      vite: ^4.2.0
     devDependencies:
       '@sveltejs/adapter-auto': link:../../../../../adapter-auto
       '@sveltejs/kit': link:../../../..
       svelte: 3.56.0
       svelte-check: 3.0.2_svelte@3.56.0
       typescript: 4.9.4
-      vite: 4.1.1
+      vite: 4.2.0
 
   packages/kit/test/build-errors/apps/private-dynamic-env:
     specifiers:
@@ -470,13 +470,13 @@ importers:
       svelte: ^3.56.0
       svelte-check: ^3.0.2
       typescript: ^4.9.4
-      vite: ^4.1.1
+      vite: ^4.2.0
     devDependencies:
       '@sveltejs/kit': link:../../../..
       svelte: 3.56.0
       svelte-check: 3.0.2_svelte@3.56.0
       typescript: 4.9.4
-      vite: 4.1.1
+      vite: 4.2.0
 
   packages/kit/test/build-errors/apps/private-dynamic-env-dynamic-import:
     specifiers:
@@ -484,13 +484,13 @@ importers:
       svelte: ^3.56.0
       svelte-check: ^3.0.2
       typescript: ^4.9.4
-      vite: ^4.1.1
+      vite: ^4.2.0
     devDependencies:
       '@sveltejs/kit': link:../../../..
       svelte: 3.56.0
       svelte-check: 3.0.2_svelte@3.56.0
       typescript: 4.9.4
-      vite: 4.1.1
+      vite: 4.2.0
 
   packages/kit/test/build-errors/apps/private-static-env:
     specifiers:
@@ -499,14 +499,14 @@ importers:
       svelte: ^3.56.0
       svelte-check: ^3.0.2
       typescript: ^4.9.4
-      vite: ^4.1.1
+      vite: ^4.2.0
     devDependencies:
       '@sveltejs/kit': link:../../../..
       cross-env: 7.0.3
       svelte: 3.56.0
       svelte-check: 3.0.2_svelte@3.56.0
       typescript: 4.9.4
-      vite: 4.1.1
+      vite: 4.2.0
 
   packages/kit/test/build-errors/apps/private-static-env-dynamic-import:
     specifiers:
@@ -514,13 +514,13 @@ importers:
       svelte: ^3.56.0
       svelte-check: ^3.0.2
       typescript: ^4.9.4
-      vite: ^4.1.1
+      vite: ^4.2.0
     devDependencies:
       '@sveltejs/kit': link:../../../..
       svelte: 3.56.0
       svelte-check: 3.0.2_svelte@3.56.0
       typescript: 4.9.4
-      vite: 4.1.1
+      vite: 4.2.0
 
   packages/kit/test/build-errors/apps/server-only-folder:
     specifiers:
@@ -528,13 +528,13 @@ importers:
       svelte: ^3.56.0
       svelte-check: ^3.0.2
       typescript: ^4.9.4
-      vite: ^4.1.1
+      vite: ^4.2.0
     devDependencies:
       '@sveltejs/kit': link:../../../..
       svelte: 3.56.0
       svelte-check: 3.0.2_svelte@3.56.0
       typescript: 4.9.4
-      vite: 4.1.1
+      vite: 4.2.0
 
   packages/kit/test/build-errors/apps/server-only-folder-dynamic-import:
     specifiers:
@@ -542,13 +542,13 @@ importers:
       svelte: ^3.56.0
       svelte-check: ^3.0.2
       typescript: ^4.9.4
-      vite: ^4.1.1
+      vite: ^4.2.0
     devDependencies:
       '@sveltejs/kit': link:../../../..
       svelte: 3.56.0
       svelte-check: 3.0.2_svelte@3.56.0
       typescript: 4.9.4
-      vite: 4.1.1
+      vite: 4.2.0
 
   packages/kit/test/build-errors/apps/server-only-module:
     specifiers:
@@ -556,13 +556,13 @@ importers:
       svelte: ^3.56.0
       svelte-check: ^3.0.2
       typescript: ^4.9.4
-      vite: ^4.1.1
+      vite: ^4.2.0
     devDependencies:
       '@sveltejs/kit': link:../../../..
       svelte: 3.56.0
       svelte-check: 3.0.2_svelte@3.56.0
       typescript: 4.9.4
-      vite: 4.1.1
+      vite: 4.2.0
 
   packages/kit/test/build-errors/apps/server-only-module-dynamic-import:
     specifiers:
@@ -570,13 +570,13 @@ importers:
       svelte: ^3.56.0
       svelte-check: ^3.0.2
       typescript: ^4.9.4
-      vite: ^4.1.1
+      vite: ^4.2.0
     devDependencies:
       '@sveltejs/kit': link:../../../..
       svelte: 3.56.0
       svelte-check: 3.0.2_svelte@3.56.0
       typescript: 4.9.4
-      vite: 4.1.1
+      vite: 4.2.0
 
   packages/kit/test/build-errors/apps/syntax-error:
     specifiers:
@@ -584,13 +584,13 @@ importers:
       svelte: ^3.56.0
       svelte-check: ^3.0.2
       typescript: ^4.9.4
-      vite: ^4.1.1
+      vite: ^4.2.0
     devDependencies:
       '@sveltejs/kit': link:../../../..
       svelte: 3.56.0
       svelte-check: 3.0.2_svelte@3.56.0
       typescript: 4.9.4
-      vite: 4.1.1
+      vite: 4.2.0
 
   packages/kit/test/prerendering/basics:
     specifiers:
@@ -599,14 +599,14 @@ importers:
       svelte-check: ^3.0.2
       typescript: ^4.9.4
       uvu: ^0.5.6
-      vite: ^4.1.1
+      vite: ^4.2.0
     devDependencies:
       '@sveltejs/kit': link:../../..
       svelte: 3.56.0
       svelte-check: 3.0.2_svelte@3.56.0
       typescript: 4.9.4
       uvu: 0.5.6
-      vite: 4.1.1
+      vite: 4.2.0
 
   packages/kit/test/prerendering/options:
     specifiers:
@@ -615,14 +615,14 @@ importers:
       svelte-check: ^3.0.2
       typescript: ^4.9.4
       uvu: ^0.5.6
-      vite: ^4.1.1
+      vite: ^4.2.0
     devDependencies:
       '@sveltejs/kit': link:../../..
       svelte: 3.56.0
       svelte-check: 3.0.2_svelte@3.56.0
       typescript: 4.9.4
       uvu: 0.5.6
-      vite: 4.1.1
+      vite: 4.2.0
 
   packages/kit/test/prerendering/paths-base:
     specifiers:
@@ -631,14 +631,14 @@ importers:
       svelte-check: ^3.0.2
       typescript: ^4.9.4
       uvu: ^0.5.6
-      vite: ^4.1.1
+      vite: ^4.2.0
     devDependencies:
       '@sveltejs/kit': link:../../..
       svelte: 3.56.0
       svelte-check: 3.0.2_svelte@3.56.0
       typescript: 4.9.4
       uvu: 0.5.6
-      vite: 4.1.1
+      vite: 4.2.0
 
   packages/migrate:
     specifiers:
@@ -705,7 +705,7 @@ importers:
       topojson-client: ^3.1.0
       typescript: ^4.9.4
       uvu: ^0.5.6
-      vite: ^4.1.1
+      vite: ^4.2.0
       vite-imagetools: ^4.0.16
     dependencies:
       d3-geo: 3.0.1
@@ -728,7 +728,7 @@ importers:
       tiny-glob: 0.2.9
       typescript: 4.9.4
       uvu: 0.5.6
-      vite: 4.1.1_@types+node@16.18.6
+      vite: 4.2.0_@types+node@16.18.6
       vite-imagetools: 4.0.16
 
 packages:
@@ -985,14 +985,6 @@ packages:
     resolution: {integrity: sha512-BNV2wN8V6Zduvo7UzxcdjBbLQ906D2KhS804PDufLgx/sanGJCHVJMOIaLvS/b61JKtot1U7P/l1fjrjZ7/E3A==}
     dev: false
 
-  /@esbuild/android-arm/0.16.17:
-    resolution: {integrity: sha512-N9x1CMXVhtWEAMS7pNNONyA14f71VPQN9Cnavj1XQh6T7bskqiLLrSca4O0Vr8Wdcga943eThxnVp3JLnBMYtw==}
-    engines: {node: '>=12'}
-    cpu: [arm]
-    os: [android]
-    requiresBuild: true
-    optional: true
-
   /@esbuild/android-arm/0.16.3:
     resolution: {integrity: sha512-mueuEoh+s1eRbSJqq9KNBQwI4QhQV6sRXIfTyLXSHGMpyew61rOK4qY21uKbXl1iBoMb0AdL1deWFCQVlN2qHA==}
     engines: {node: '>=12'}
@@ -1002,10 +994,10 @@ packages:
     dev: false
     optional: true
 
-  /@esbuild/android-arm64/0.16.17:
-    resolution: {integrity: sha512-MIGl6p5sc3RDTLLkYL1MyL8BMRN4tLMRCn+yRJJmEDvYZ2M7tmAf80hx1kbNEUX2KJ50RRtxZ4JHLvCfuB6kBg==}
+  /@esbuild/android-arm/0.17.12:
+    resolution: {integrity: sha512-E/sgkvwoIfj4aMAPL2e35VnUJspzVYl7+M1B2cqeubdBhADV4uPon0KCc8p2G+LqSJ6i8ocYPCqY3A4GGq0zkQ==}
     engines: {node: '>=12'}
-    cpu: [arm64]
+    cpu: [arm]
     os: [android]
     requiresBuild: true
     optional: true
@@ -1019,10 +1011,10 @@ packages:
     dev: false
     optional: true
 
-  /@esbuild/android-x64/0.16.17:
-    resolution: {integrity: sha512-a3kTv3m0Ghh4z1DaFEuEDfz3OLONKuFvI4Xqczqx4BqLyuFaFkuaG4j2MtA6fuWEFeC5x9IvqnX7drmRq/fyAQ==}
+  /@esbuild/android-arm64/0.17.12:
+    resolution: {integrity: sha512-WQ9p5oiXXYJ33F2EkE3r0FRDFVpEdcDiwNX3u7Xaibxfx6vQE0Sb8ytrfQsA5WO6kDn6mDfKLh6KrPBjvkk7xA==}
     engines: {node: '>=12'}
-    cpu: [x64]
+    cpu: [arm64]
     os: [android]
     requiresBuild: true
     optional: true
@@ -1036,11 +1028,11 @@ packages:
     dev: false
     optional: true
 
-  /@esbuild/darwin-arm64/0.16.17:
-    resolution: {integrity: sha512-/2agbUEfmxWHi9ARTX6OQ/KgXnOWfsNlTeLcoV7HSuSTv63E4DqtAc+2XqGw1KHxKMHGZgbVCZge7HXWX9Vn+w==}
+  /@esbuild/android-x64/0.17.12:
+    resolution: {integrity: sha512-m4OsaCr5gT+se25rFPHKQXARMyAehHTQAz4XX1Vk3d27VtqiX0ALMBPoXZsGaB6JYryCLfgGwUslMqTfqeLU0w==}
     engines: {node: '>=12'}
-    cpu: [arm64]
-    os: [darwin]
+    cpu: [x64]
+    os: [android]
     requiresBuild: true
     optional: true
 
@@ -1053,10 +1045,10 @@ packages:
     dev: false
     optional: true
 
-  /@esbuild/darwin-x64/0.16.17:
-    resolution: {integrity: sha512-2By45OBHulkd9Svy5IOCZt376Aa2oOkiE9QWUK9fe6Tb+WDr8hXL3dpqi+DeLiMed8tVXspzsTAvd0jUl96wmg==}
+  /@esbuild/darwin-arm64/0.17.12:
+    resolution: {integrity: sha512-O3GCZghRIx+RAN0NDPhyyhRgwa19MoKlzGonIb5hgTj78krqp9XZbYCvFr9N1eUxg0ZQEpiiZ4QvsOQwBpP+lg==}
     engines: {node: '>=12'}
-    cpu: [x64]
+    cpu: [arm64]
     os: [darwin]
     requiresBuild: true
     optional: true
@@ -1070,11 +1062,11 @@ packages:
     dev: false
     optional: true
 
-  /@esbuild/freebsd-arm64/0.16.17:
-    resolution: {integrity: sha512-mt+cxZe1tVx489VTb4mBAOo2aKSnJ33L9fr25JXpqQqzbUIw/yzIzi+NHwAXK2qYV1lEFp4OoVeThGjUbmWmdw==}
+  /@esbuild/darwin-x64/0.17.12:
+    resolution: {integrity: sha512-5D48jM3tW27h1qjaD9UNRuN+4v0zvksqZSPZqeSWggfMlsVdAhH3pwSfQIFJwcs9QJ9BRibPS4ViZgs3d2wsCA==}
     engines: {node: '>=12'}
-    cpu: [arm64]
-    os: [freebsd]
+    cpu: [x64]
+    os: [darwin]
     requiresBuild: true
     optional: true
 
@@ -1087,10 +1079,10 @@ packages:
     dev: false
     optional: true
 
-  /@esbuild/freebsd-x64/0.16.17:
-    resolution: {integrity: sha512-8ScTdNJl5idAKjH8zGAsN7RuWcyHG3BAvMNpKOBaqqR7EbUhhVHOqXRdL7oZvz8WNHL2pr5+eIT5c65kA6NHug==}
+  /@esbuild/freebsd-arm64/0.17.12:
+    resolution: {integrity: sha512-OWvHzmLNTdF1erSvrfoEBGlN94IE6vCEaGEkEH29uo/VoONqPnoDFfShi41Ew+yKimx4vrmmAJEGNoyyP+OgOQ==}
     engines: {node: '>=12'}
-    cpu: [x64]
+    cpu: [arm64]
     os: [freebsd]
     requiresBuild: true
     optional: true
@@ -1104,11 +1096,11 @@ packages:
     dev: false
     optional: true
 
-  /@esbuild/linux-arm/0.16.17:
-    resolution: {integrity: sha512-iihzrWbD4gIT7j3caMzKb/RsFFHCwqqbrbH9SqUSRrdXkXaygSZCZg1FybsZz57Ju7N/SHEgPyaR0LZ8Zbe9gQ==}
+  /@esbuild/freebsd-x64/0.17.12:
+    resolution: {integrity: sha512-A0Xg5CZv8MU9xh4a+7NUpi5VHBKh1RaGJKqjxe4KG87X+mTjDE6ZvlJqpWoeJxgfXHT7IMP9tDFu7IZ03OtJAw==}
     engines: {node: '>=12'}
-    cpu: [arm]
-    os: [linux]
+    cpu: [x64]
+    os: [freebsd]
     requiresBuild: true
     optional: true
 
@@ -1121,10 +1113,10 @@ packages:
     dev: false
     optional: true
 
-  /@esbuild/linux-arm64/0.16.17:
-    resolution: {integrity: sha512-7S8gJnSlqKGVJunnMCrXHU9Q8Q/tQIxk/xL8BqAP64wchPCTzuM6W3Ra8cIa1HIflAvDnNOt2jaL17vaW+1V0g==}
+  /@esbuild/linux-arm/0.17.12:
+    resolution: {integrity: sha512-WsHyJ7b7vzHdJ1fv67Yf++2dz3D726oO3QCu8iNYik4fb5YuuReOI9OtA+n7Mk0xyQivNTPbl181s+5oZ38gyA==}
     engines: {node: '>=12'}
-    cpu: [arm64]
+    cpu: [arm]
     os: [linux]
     requiresBuild: true
     optional: true
@@ -1138,10 +1130,10 @@ packages:
     dev: false
     optional: true
 
-  /@esbuild/linux-ia32/0.16.17:
-    resolution: {integrity: sha512-kiX69+wcPAdgl3Lonh1VI7MBr16nktEvOfViszBSxygRQqSpzv7BffMKRPMFwzeJGPxcio0pdD3kYQGpqQ2SSg==}
+  /@esbuild/linux-arm64/0.17.12:
+    resolution: {integrity: sha512-cK3AjkEc+8v8YG02hYLQIQlOznW+v9N+OI9BAFuyqkfQFR+DnDLhEM5N8QRxAUz99cJTo1rLNXqRrvY15gbQUg==}
     engines: {node: '>=12'}
-    cpu: [ia32]
+    cpu: [arm64]
     os: [linux]
     requiresBuild: true
     optional: true
@@ -1155,10 +1147,10 @@ packages:
     dev: false
     optional: true
 
-  /@esbuild/linux-loong64/0.16.17:
-    resolution: {integrity: sha512-dTzNnQwembNDhd654cA4QhbS9uDdXC3TKqMJjgOWsC0yNCbpzfWoXdZvp0mY7HU6nzk5E0zpRGGx3qoQg8T2DQ==}
+  /@esbuild/linux-ia32/0.17.12:
+    resolution: {integrity: sha512-jdOBXJqcgHlah/nYHnj3Hrnl9l63RjtQ4vn9+bohjQPI2QafASB5MtHAoEv0JQHVb/xYQTFOeuHnNYE1zF7tYw==}
     engines: {node: '>=12'}
-    cpu: [loong64]
+    cpu: [ia32]
     os: [linux]
     requiresBuild: true
     optional: true
@@ -1172,10 +1164,10 @@ packages:
     dev: false
     optional: true
 
-  /@esbuild/linux-mips64el/0.16.17:
-    resolution: {integrity: sha512-ezbDkp2nDl0PfIUn0CsQ30kxfcLTlcx4Foz2kYv8qdC6ia2oX5Q3E/8m6lq84Dj/6b0FrkgD582fJMIfHhJfSw==}
+  /@esbuild/linux-loong64/0.17.12:
+    resolution: {integrity: sha512-GTOEtj8h9qPKXCyiBBnHconSCV9LwFyx/gv3Phw0pa25qPYjVuuGZ4Dk14bGCfGX3qKF0+ceeQvwmtI+aYBbVA==}
     engines: {node: '>=12'}
-    cpu: [mips64el]
+    cpu: [loong64]
     os: [linux]
     requiresBuild: true
     optional: true
@@ -1189,10 +1181,10 @@ packages:
     dev: false
     optional: true
 
-  /@esbuild/linux-ppc64/0.16.17:
-    resolution: {integrity: sha512-dzS678gYD1lJsW73zrFhDApLVdM3cUF2MvAa1D8K8KtcSKdLBPP4zZSLy6LFZ0jYqQdQ29bjAHJDgz0rVbLB3g==}
+  /@esbuild/linux-mips64el/0.17.12:
+    resolution: {integrity: sha512-o8CIhfBwKcxmEENOH9RwmUejs5jFiNoDw7YgS0EJTF6kgPgcqLFjgoc5kDey5cMHRVCIWc6kK2ShUePOcc7RbA==}
     engines: {node: '>=12'}
-    cpu: [ppc64]
+    cpu: [mips64el]
     os: [linux]
     requiresBuild: true
     optional: true
@@ -1206,10 +1198,10 @@ packages:
     dev: false
     optional: true
 
-  /@esbuild/linux-riscv64/0.16.17:
-    resolution: {integrity: sha512-ylNlVsxuFjZK8DQtNUwiMskh6nT0vI7kYl/4fZgV1llP5d6+HIeL/vmmm3jpuoo8+NuXjQVZxmKuhDApK0/cKw==}
+  /@esbuild/linux-ppc64/0.17.12:
+    resolution: {integrity: sha512-biMLH6NR/GR4z+ap0oJYb877LdBpGac8KfZoEnDiBKd7MD/xt8eaw1SFfYRUeMVx519kVkAOL2GExdFmYnZx3A==}
     engines: {node: '>=12'}
-    cpu: [riscv64]
+    cpu: [ppc64]
     os: [linux]
     requiresBuild: true
     optional: true
@@ -1223,10 +1215,10 @@ packages:
     dev: false
     optional: true
 
-  /@esbuild/linux-s390x/0.16.17:
-    resolution: {integrity: sha512-gzy7nUTO4UA4oZ2wAMXPNBGTzZFP7mss3aKR2hH+/4UUkCOyqmjXiKpzGrY2TlEUhbbejzXVKKGazYcQTZWA/w==}
+  /@esbuild/linux-riscv64/0.17.12:
+    resolution: {integrity: sha512-jkphYUiO38wZGeWlfIBMB72auOllNA2sLfiZPGDtOBb1ELN8lmqBrlMiucgL8awBw1zBXN69PmZM6g4yTX84TA==}
     engines: {node: '>=12'}
-    cpu: [s390x]
+    cpu: [riscv64]
     os: [linux]
     requiresBuild: true
     optional: true
@@ -1240,10 +1232,10 @@ packages:
     dev: false
     optional: true
 
-  /@esbuild/linux-x64/0.16.17:
-    resolution: {integrity: sha512-mdPjPxfnmoqhgpiEArqi4egmBAMYvaObgn4poorpUaqmvzzbvqbowRllQ+ZgzGVMGKaPkqUmPDOOFQRUFDmeUw==}
+  /@esbuild/linux-s390x/0.17.12:
+    resolution: {integrity: sha512-j3ucLdeY9HBcvODhCY4b+Ds3hWGO8t+SAidtmWu/ukfLLG/oYDMaA+dnugTVAg5fnUOGNbIYL9TOjhWgQB8W5g==}
     engines: {node: '>=12'}
-    cpu: [x64]
+    cpu: [s390x]
     os: [linux]
     requiresBuild: true
     optional: true
@@ -1257,11 +1249,11 @@ packages:
     dev: false
     optional: true
 
-  /@esbuild/netbsd-x64/0.16.17:
-    resolution: {integrity: sha512-/PzmzD/zyAeTUsduZa32bn0ORug+Jd1EGGAUJvqfeixoEISYpGnAezN6lnJoskauoai0Jrs+XSyvDhppCPoKOA==}
+  /@esbuild/linux-x64/0.17.12:
+    resolution: {integrity: sha512-uo5JL3cgaEGotaqSaJdRfFNSCUJOIliKLnDGWaVCgIKkHxwhYMm95pfMbWZ9l7GeW9kDg0tSxcy9NYdEtjwwmA==}
     engines: {node: '>=12'}
     cpu: [x64]
-    os: [netbsd]
+    os: [linux]
     requiresBuild: true
     optional: true
 
@@ -1274,11 +1266,11 @@ packages:
     dev: false
     optional: true
 
-  /@esbuild/openbsd-x64/0.16.17:
-    resolution: {integrity: sha512-2yaWJhvxGEz2RiftSk0UObqJa/b+rIAjnODJgv2GbGGpRwAfpgzyrg1WLK8rqA24mfZa9GvpjLcBBg8JHkoodg==}
+  /@esbuild/netbsd-x64/0.17.12:
+    resolution: {integrity: sha512-DNdoRg8JX+gGsbqt2gPgkgb00mqOgOO27KnrWZtdABl6yWTST30aibGJ6geBq3WM2TIeW6COs5AScnC7GwtGPg==}
     engines: {node: '>=12'}
     cpu: [x64]
-    os: [openbsd]
+    os: [netbsd]
     requiresBuild: true
     optional: true
 
@@ -1291,11 +1283,11 @@ packages:
     dev: false
     optional: true
 
-  /@esbuild/sunos-x64/0.16.17:
-    resolution: {integrity: sha512-xtVUiev38tN0R3g8VhRfN7Zl42YCJvyBhRKw1RJjwE1d2emWTVToPLNEQj/5Qxc6lVFATDiy6LjVHYhIPrLxzw==}
+  /@esbuild/openbsd-x64/0.17.12:
+    resolution: {integrity: sha512-aVsENlr7B64w8I1lhHShND5o8cW6sB9n9MUtLumFlPhG3elhNWtE7M1TFpj3m7lT3sKQUMkGFjTQBrvDDO1YWA==}
     engines: {node: '>=12'}
     cpu: [x64]
-    os: [sunos]
+    os: [openbsd]
     requiresBuild: true
     optional: true
 
@@ -1308,11 +1300,11 @@ packages:
     dev: false
     optional: true
 
-  /@esbuild/win32-arm64/0.16.17:
-    resolution: {integrity: sha512-ga8+JqBDHY4b6fQAmOgtJJue36scANy4l/rL97W+0wYmijhxKetzZdKOJI7olaBaMhWt8Pac2McJdZLxXWUEQw==}
+  /@esbuild/sunos-x64/0.17.12:
+    resolution: {integrity: sha512-qbHGVQdKSwi0JQJuZznS4SyY27tYXYF0mrgthbxXrZI3AHKuRvU+Eqbg/F0rmLDpW/jkIZBlCO1XfHUBMNJ1pg==}
     engines: {node: '>=12'}
-    cpu: [arm64]
-    os: [win32]
+    cpu: [x64]
+    os: [sunos]
     requiresBuild: true
     optional: true
 
@@ -1325,10 +1317,10 @@ packages:
     dev: false
     optional: true
 
-  /@esbuild/win32-ia32/0.16.17:
-    resolution: {integrity: sha512-WnsKaf46uSSF/sZhwnqE4L/F89AYNMiD4YtEcYekBt9Q7nj0DiId2XH2Ng2PHM54qi5oPrQ8luuzGszqi/veig==}
+  /@esbuild/win32-arm64/0.17.12:
+    resolution: {integrity: sha512-zsCp8Ql+96xXTVTmm6ffvoTSZSV2B/LzzkUXAY33F/76EajNw1m+jZ9zPfNJlJ3Rh4EzOszNDHsmG/fZOhtqDg==}
     engines: {node: '>=12'}
-    cpu: [ia32]
+    cpu: [arm64]
     os: [win32]
     requiresBuild: true
     optional: true
@@ -1342,10 +1334,10 @@ packages:
     dev: false
     optional: true
 
-  /@esbuild/win32-x64/0.16.17:
-    resolution: {integrity: sha512-y+EHuSchhL7FjHgvQL/0fnnFmO4T1bhvWANX6gcnqTjtnKWbTvUMCpGnv2+t+31d7RzyEAYAd4u2fnIhHL6N/Q==}
+  /@esbuild/win32-ia32/0.17.12:
+    resolution: {integrity: sha512-FfrFjR4id7wcFYOdqbDfDET3tjxCozUgbqdkOABsSFzoZGFC92UK7mg4JKRc/B3NNEf1s2WHxJ7VfTdVDPN3ng==}
     engines: {node: '>=12'}
-    cpu: [x64]
+    cpu: [ia32]
     os: [win32]
     requiresBuild: true
     optional: true
@@ -1359,6 +1351,14 @@ packages:
     dev: false
     optional: true
 
+  /@esbuild/win32-x64/0.17.12:
+    resolution: {integrity: sha512-JOOxw49BVZx2/5tW3FqkdjSD/5gXYeVGPDcB0lvap0gLQshkh1Nyel1QazC+wNxus3xPlsYAgqU1BUmrmCvWtw==}
+    engines: {node: '>=12'}
+    cpu: [x64]
+    os: [win32]
+    requiresBuild: true
+    optional: true
+
   /@eslint-community/eslint-utils/4.1.2_eslint@8.33.0:
     resolution: {integrity: sha512-7qELuQWWjVDdVsFQ5+beUl+KPczrEDA7S3zM4QUd/bJl7oXgsmpXaEVqrRTnOBqenOV4rWf2kVZk2Ot085zPWA==}
     engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -1594,7 +1594,7 @@ packages:
     resolution: {integrity: sha512-Vv9Efzax+NMRZUfZ9TdUqQYicj2Z3kynLkUUdGPfahjlFEwQ3EGyj1vVCg5jxyqvNUgOsVVUb35nXI5CPsmCfA==}
     dev: true
 
-  /@sveltejs/vite-plugin-svelte/2.0.0_svelte@3.56.0+vite@4.1.1:
+  /@sveltejs/vite-plugin-svelte/2.0.0_svelte@3.56.0+vite@4.2.0:
     resolution: {integrity: sha512-oUFrYQarRv4fppmxdrv00qw3wX8Ycdj0uv33MfpRZyR8K67dyxiOcHnqkB0zSy5sDJA8RC/2aNtYhXJ8NINVHQ==}
     engines: {node: ^14.18.0 || >= 16}
     peerDependencies:
@@ -1607,8 +1607,8 @@ packages:
       magic-string: 0.27.0
       svelte: 3.56.0
       svelte-hmr: 0.15.1_svelte@3.56.0
-      vite: 4.1.1_@types+node@16.18.6
-      vitefu: 0.2.3_vite@4.1.1
+      vite: 4.2.0_@types+node@16.18.6
+      vitefu: 0.2.3_vite@4.2.0
     transitivePeerDependencies:
       - supports-color
     dev: false
@@ -2614,35 +2614,6 @@ packages:
     resolution: {integrity: sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg==}
     dev: true
 
-  /esbuild/0.16.17:
-    resolution: {integrity: sha512-G8LEkV0XzDMNwXKgM0Jwu3nY3lSTwSGY6XbxM9cr9+s0T/qSV1q1JVPBGzm3dcjhCic9+emZDmMffkwgPeOeLg==}
-    engines: {node: '>=12'}
-    hasBin: true
-    requiresBuild: true
-    optionalDependencies:
-      '@esbuild/android-arm': 0.16.17
-      '@esbuild/android-arm64': 0.16.17
-      '@esbuild/android-x64': 0.16.17
-      '@esbuild/darwin-arm64': 0.16.17
-      '@esbuild/darwin-x64': 0.16.17
-      '@esbuild/freebsd-arm64': 0.16.17
-      '@esbuild/freebsd-x64': 0.16.17
-      '@esbuild/linux-arm': 0.16.17
-      '@esbuild/linux-arm64': 0.16.17
-      '@esbuild/linux-ia32': 0.16.17
-      '@esbuild/linux-loong64': 0.16.17
-      '@esbuild/linux-mips64el': 0.16.17
-      '@esbuild/linux-ppc64': 0.16.17
-      '@esbuild/linux-riscv64': 0.16.17
-      '@esbuild/linux-s390x': 0.16.17
-      '@esbuild/linux-x64': 0.16.17
-      '@esbuild/netbsd-x64': 0.16.17
-      '@esbuild/openbsd-x64': 0.16.17
-      '@esbuild/sunos-x64': 0.16.17
-      '@esbuild/win32-arm64': 0.16.17
-      '@esbuild/win32-ia32': 0.16.17
-      '@esbuild/win32-x64': 0.16.17
-
   /esbuild/0.16.3:
     resolution: {integrity: sha512-71f7EjPWTiSguen8X/kxEpkAS7BFHwtQKisCDDV3Y4GLGWBaoSCyD5uXkaUew6JDzA9FEN1W23mdnSwW9kqCeg==}
     engines: {node: '>=12'}
@@ -2673,6 +2644,35 @@ packages:
       '@esbuild/win32-x64': 0.16.3
     dev: false
 
+  /esbuild/0.17.12:
+    resolution: {integrity: sha512-bX/zHl7Gn2CpQwcMtRogTTBf9l1nl+H6R8nUbjk+RuKqAE3+8FDulLA+pHvX7aA7Xe07Iwa+CWvy9I8Y2qqPKQ==}
+    engines: {node: '>=12'}
+    hasBin: true
+    requiresBuild: true
+    optionalDependencies:
+      '@esbuild/android-arm': 0.17.12
+      '@esbuild/android-arm64': 0.17.12
+      '@esbuild/android-x64': 0.17.12
+      '@esbuild/darwin-arm64': 0.17.12
+      '@esbuild/darwin-x64': 0.17.12
+      '@esbuild/freebsd-arm64': 0.17.12
+      '@esbuild/freebsd-x64': 0.17.12
+      '@esbuild/linux-arm': 0.17.12
+      '@esbuild/linux-arm64': 0.17.12
+      '@esbuild/linux-ia32': 0.17.12
+      '@esbuild/linux-loong64': 0.17.12
+      '@esbuild/linux-mips64el': 0.17.12
+      '@esbuild/linux-ppc64': 0.17.12
+      '@esbuild/linux-riscv64': 0.17.12
+      '@esbuild/linux-s390x': 0.17.12
+      '@esbuild/linux-x64': 0.17.12
+      '@esbuild/netbsd-x64': 0.17.12
+      '@esbuild/openbsd-x64': 0.17.12
+      '@esbuild/sunos-x64': 0.17.12
+      '@esbuild/win32-arm64': 0.17.12
+      '@esbuild/win32-ia32': 0.17.12
+      '@esbuild/win32-x64': 0.17.12
+
   /escalade/3.1.1:
     resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==}
     engines: {node: '>=6'}
@@ -4509,8 +4509,8 @@ packages:
       estree-walker: 0.6.1
     dev: false
 
-  /rollup/3.15.0:
-    resolution: {integrity: sha512-F9hrCAhnp5/zx/7HYmftvsNBkMfLfk/dXUh73hPSM2E3CRgap65orDNJbLetoiUFwSAk6iHPLvBrZ5iHYvzqsg==}
+  /rollup/3.19.1:
+    resolution: {integrity: sha512-lAbrdN7neYCg/8WaoWn/ckzCtz+jr70GFfYdlf50OF7387HTg+wiuiqJRFYawwSPpqfqDNYqK7smY/ks2iAudg==}
     engines: {node: '>=14.18.0', npm: '>=8.0.0'}
     hasBin: true
     optionalDependencies:
@@ -5298,8 +5298,8 @@ packages:
       - rollup
     dev: true
 
-  /vite/4.1.1:
-    resolution: {integrity: sha512-LM9WWea8vsxhr782r9ntg+bhSFS06FJgCvvB0+8hf8UWtvaiDagKYWXndjfX6kGl74keHJUcpzrQliDXZlF5yg==}
+  /vite/4.2.0:
+    resolution: {integrity: sha512-AbDTyzzwuKoRtMIRLGNxhLRuv1FpRgdIw+1y6AQG73Q5+vtecmvzKo/yk8X/vrHDpETRTx01ABijqUHIzBXi0g==}
     engines: {node: ^14.18.0 || >=16.0.0}
     hasBin: true
     peerDependencies:
@@ -5323,16 +5323,16 @@ packages:
       terser:
         optional: true
     dependencies:
-      esbuild: 0.16.17
+      esbuild: 0.17.12
       postcss: 8.4.21
       resolve: 1.22.1
-      rollup: 3.15.0
+      rollup: 3.19.1
     optionalDependencies:
       fsevents: 2.3.2
     dev: true
 
-  /vite/4.1.1_@types+node@16.18.6:
-    resolution: {integrity: sha512-LM9WWea8vsxhr782r9ntg+bhSFS06FJgCvvB0+8hf8UWtvaiDagKYWXndjfX6kGl74keHJUcpzrQliDXZlF5yg==}
+  /vite/4.2.0_@types+node@16.18.6:
+    resolution: {integrity: sha512-AbDTyzzwuKoRtMIRLGNxhLRuv1FpRgdIw+1y6AQG73Q5+vtecmvzKo/yk8X/vrHDpETRTx01ABijqUHIzBXi0g==}
     engines: {node: ^14.18.0 || >=16.0.0}
     hasBin: true
     peerDependencies:
@@ -5357,14 +5357,14 @@ packages:
         optional: true
     dependencies:
       '@types/node': 16.18.6
-      esbuild: 0.16.17
+      esbuild: 0.17.12
       postcss: 8.4.21
       resolve: 1.22.1
-      rollup: 3.15.0
+      rollup: 3.19.1
     optionalDependencies:
       fsevents: 2.3.2
 
-  /vitefu/0.2.3_vite@4.1.1:
+  /vitefu/0.2.3_vite@4.2.0:
     resolution: {integrity: sha512-75l7TTuU8isAhz1QFtNKjDkqjxvndfMC1AfIMjJ0ZQ59ZD0Ow9QOIsJJX16Wv9PS8f+zMzp6fHy5cCbKG/yVUQ==}
     peerDependencies:
       vite: ^3.0.0 || ^4.0.0
@@ -5372,7 +5372,7 @@ packages:
       vite:
         optional: true
     dependencies:
-      vite: 4.1.1_@types+node@16.18.6
+      vite: 4.2.0_@types+node@16.18.6
     dev: false
 
   /vscode-oniguruma/1.6.2:
diff --git a/sites/kit.svelte.dev/package.json b/sites/kit.svelte.dev/package.json
index a478714b1..b6afda661 100644
--- a/sites/kit.svelte.dev/package.json
+++ b/sites/kit.svelte.dev/package.json
@@ -27,7 +27,7 @@
 		"tiny-glob": "^0.2.9",
 		"typescript": "^4.9.4",
 		"uvu": "^0.5.6",
-		"vite": "^4.1.1",
+		"vite": "^4.2.0",
 		"vite-imagetools": "^4.0.16"
 	},
 	"type": "module",


Test patch:
diff --git a/packages/adapter-static/test/apps/prerendered/package.json b/packages/adapter-static/test/apps/prerendered/package.json
index 116f8e3da..fb4c1dd92 100644
--- a/packages/adapter-static/test/apps/prerendered/package.json
+++ b/packages/adapter-static/test/apps/prerendered/package.json
@@ -10,7 +10,7 @@
 	"devDependencies": {
 		"@sveltejs/kit": "workspace:^",
 		"svelte": "^3.56.0",
-		"vite": "^4.1.1"
+		"vite": "^4.2.0"
 	},
 	"type": "module"
 }
diff --git a/packages/adapter-static/test/apps/spa/package.json b/packages/adapter-static/test/apps/spa/package.json
index 7cc886b59..dedc52e87 100644
--- a/packages/adapter-static/test/apps/spa/package.json
+++ b/packages/adapter-static/test/apps/spa/package.json
@@ -12,7 +12,7 @@
 		"@sveltejs/kit": "workspace:^",
 		"sirv-cli": "^2.0.2",
 		"svelte": "^3.56.0",
-		"vite": "^4.1.1"
+		"vite": "^4.2.0"
 	},
 	"type": "module"
 }
diff --git a/packages/kit/test/apps/amp/package.json b/packages/kit/test/apps/amp/package.json
index 4756e8d53..a56fb901c 100644
--- a/packages/kit/test/apps/amp/package.json
+++ b/packages/kit/test/apps/amp/package.json
@@ -19,7 +19,7 @@
 		"svelte": "^3.56.0",
 		"svelte-check": "^3.0.2",
 		"typescript": "^4.9.4",
-		"vite": "^4.1.1"
+		"vite": "^4.2.0"
 	},
 	"type": "module"
 }
diff --git a/packages/kit/test/apps/basics/package.json b/packages/kit/test/apps/basics/package.json
index aa698368a..cf6beb03a 100644
--- a/packages/kit/test/apps/basics/package.json
+++ b/packages/kit/test/apps/basics/package.json
@@ -20,7 +20,7 @@
 		"svelte": "^3.56.0",
 		"svelte-check": "^3.0.2",
 		"typescript": "^4.9.4",
-		"vite": "^4.1.1"
+		"vite": "^4.2.0"
 	},
 	"type": "module"
 }
diff --git a/packages/kit/test/apps/dev-only/package.json b/packages/kit/test/apps/dev-only/package.json
index c361c41fc..5e4f0f0b0 100644
--- a/packages/kit/test/apps/dev-only/package.json
+++ b/packages/kit/test/apps/dev-only/package.json
@@ -15,7 +15,7 @@
 		"svelte": "^3.56.0",
 		"svelte-check": "^3.0.2",
 		"typescript": "^4.9.4",
-		"vite": "^4.1.1"
+		"vite": "^4.2.0"
 	},
 	"type": "module"
 }
diff --git a/packages/kit/test/apps/options-2/package.json b/packages/kit/test/apps/options-2/package.json
index 627ea615c..1f776cd91 100644
--- a/packages/kit/test/apps/options-2/package.json
+++ b/packages/kit/test/apps/options-2/package.json
@@ -18,7 +18,7 @@
 		"svelte": "^3.56.0",
 		"svelte-check": "^3.0.2",
 		"typescript": "^4.9.4",
-		"vite": "^4.1.1"
+		"vite": "^4.2.0"
 	},
 	"type": "module"
 }
diff --git a/packages/kit/test/apps/options/package.json b/packages/kit/test/apps/options/package.json
index 4a005ced9..28537d89f 100644
--- a/packages/kit/test/apps/options/package.json
+++ b/packages/kit/test/apps/options/package.json
@@ -17,7 +17,7 @@
 		"svelte": "^3.56.0",
 		"svelte-check": "^3.0.2",
 		"typescript": "^4.9.4",
-		"vite": "^4.1.1"
+		"vite": "^4.2.0"
 	},
 	"type": "module"
 }
diff --git a/packages/kit/test/apps/writes/package.json b/packages/kit/test/apps/writes/package.json
index b7c5079a6..c5aa94136 100644
--- a/packages/kit/test/apps/writes/package.json
+++ b/packages/kit/test/apps/writes/package.json
@@ -18,7 +18,7 @@
 		"svelte": "^3.56.0",
 		"svelte-check": "^3.0.2",
 		"typescript": "^4.9.4",
-		"vite": "^4.1.1"
+		"vite": "^4.2.0"
 	},
 	"type": "module"
 }
diff --git a/packages/kit/test/build-errors/apps/prerenderable-incorrect-fragment/package.json b/packages/kit/test/build-errors/apps/prerenderable-incorrect-fragment/package.json
index 848b67cbc..a1176e486 100644
--- a/packages/kit/test/build-errors/apps/prerenderable-incorrect-fragment/package.json
+++ b/packages/kit/test/build-errors/apps/prerenderable-incorrect-fragment/package.json
@@ -14,7 +14,7 @@
 		"svelte": "^3.56.0",
 		"svelte-check": "^3.0.2",
 		"typescript": "^4.9.4",
-		"vite": "^4.1.1"
+		"vite": "^4.2.0"
 	},
 	"type": "module"
 }
diff --git a/packages/kit/test/build-errors/apps/prerenderable-not-prerendered/package.json b/packages/kit/test/build-errors/apps/prerenderable-not-prerendered/package.json
index f42287fcd..1f93f6d8d 100644
--- a/packages/kit/test/build-errors/apps/prerenderable-not-prerendered/package.json
+++ b/packages/kit/test/build-errors/apps/prerenderable-not-prerendered/package.json
@@ -14,7 +14,7 @@
 		"svelte": "^3.56.0",
 		"svelte-check": "^3.0.2",
 		"typescript": "^4.9.4",
-		"vite": "^4.1.1"
+		"vite": "^4.2.0"
 	},
 	"type": "module"
 }
diff --git a/packages/kit/test/build-errors/apps/private-dynamic-env-dynamic-import/package.json b/packages/kit/test/build-errors/apps/private-dynamic-env-dynamic-import/package.json
index f8ab53a65..42527c4e5 100644
--- a/packages/kit/test/build-errors/apps/private-dynamic-env-dynamic-import/package.json
+++ b/packages/kit/test/build-errors/apps/private-dynamic-env-dynamic-import/package.json
@@ -14,7 +14,7 @@
 		"svelte": "^3.56.0",
 		"svelte-check": "^3.0.2",
 		"typescript": "^4.9.4",
-		"vite": "^4.1.1"
+		"vite": "^4.2.0"
 	},
 	"type": "module"
 }
diff --git a/packages/kit/test/build-errors/apps/private-dynamic-env/package.json b/packages/kit/test/build-errors/apps/private-dynamic-env/package.json
index 6075d6942..6499b6879 100644
--- a/packages/kit/test/build-errors/apps/private-dynamic-env/package.json
+++ b/packages/kit/test/build-errors/apps/private-dynamic-env/package.json
@@ -14,7 +14,7 @@
 		"svelte": "^3.56.0",
 		"svelte-check": "^3.0.2",
 		"typescript": "^4.9.4",
-		"vite": "^4.1.1"
+		"vite": "^4.2.0"
 	},
 	"type": "module"
 }
diff --git a/packages/kit/test/build-errors/apps/private-static-env-dynamic-import/package.json b/packages/kit/test/build-errors/apps/private-static-env-dynamic-import/package.json
index 77f07aae1..6637f2459 100644
--- a/packages/kit/test/build-errors/apps/private-static-env-dynamic-import/package.json
+++ b/packages/kit/test/build-errors/apps/private-static-env-dynamic-import/package.json
@@ -14,7 +14,7 @@
 		"svelte": "^3.56.0",
 		"svelte-check": "^3.0.2",
 		"typescript": "^4.9.4",
-		"vite": "^4.1.1"
+		"vite": "^4.2.0"
 	},
 	"type": "module"
 }
diff --git a/packages/kit/test/build-errors/apps/private-static-env/package.json b/packages/kit/test/build-errors/apps/private-static-env/package.json
index ef2e980f3..2e2267a2a 100644
--- a/packages/kit/test/build-errors/apps/private-static-env/package.json
+++ b/packages/kit/test/build-errors/apps/private-static-env/package.json
@@ -15,7 +15,7 @@
 		"svelte": "^3.56.0",
 		"svelte-check": "^3.0.2",
 		"typescript": "^4.9.4",
-		"vite": "^4.1.1"
+		"vite": "^4.2.0"
 	},
 	"type": "module"
 }
diff --git a/packages/kit/test/build-errors/apps/server-only-folder-dynamic-import/package.json b/packages/kit/test/build-errors/apps/server-only-folder-dynamic-import/package.json
index 745f9563c..675090f00 100644
--- a/packages/kit/test/build-errors/apps/server-only-folder-dynamic-import/package.json
+++ b/packages/kit/test/build-errors/apps/server-only-folder-dynamic-import/package.json
@@ -14,7 +14,7 @@
 		"svelte": "^3.56.0",
 		"svelte-check": "^3.0.2",
 		"typescript": "^4.9.4",
-		"vite": "^4.1.1"
+		"vite": "^4.2.0"
 	},
 	"type": "module"
 }
diff --git a/packages/kit/test/build-errors/apps/server-only-folder/package.json b/packages/kit/test/build-errors/apps/server-only-folder/package.json
index 4b13d1655..a8e27ad2c 100644
--- a/packages/kit/test/build-errors/apps/server-only-folder/package.json
+++ b/packages/kit/test/build-errors/apps/server-only-folder/package.json
@@ -14,7 +14,7 @@
 		"svelte": "^3.56.0",
 		"svelte-check": "^3.0.2",
 		"typescript": "^4.9.4",
-		"vite": "^4.1.1"
+		"vite": "^4.2.0"
 	},
 	"type": "module"
 }
diff --git a/packages/kit/test/build-errors/apps/server-only-module-dynamic-import/package.json b/packages/kit/test/build-errors/apps/server-only-module-dynamic-import/package.json
index e8bdf8747..6a4fd6be9 100644
--- a/packages/kit/test/build-errors/apps/server-only-module-dynamic-import/package.json
+++ b/packages/kit/test/build-errors/apps/server-only-module-dynamic-import/package.json
@@ -14,7 +14,7 @@
 		"svelte": "^3.56.0",
 		"svelte-check": "^3.0.2",
 		"typescript": "^4.9.4",
-		"vite": "^4.1.1"
+		"vite": "^4.2.0"
 	},
 	"type": "module"
 }
diff --git a/packages/kit/test/build-errors/apps/server-only-module/package.json b/packages/kit/test/build-errors/apps/server-only-module/package.json
index b005c3de5..fbecf3fd3 100644
--- a/packages/kit/test/build-errors/apps/server-only-module/package.json
+++ b/packages/kit/test/build-errors/apps/server-only-module/package.json
@@ -14,7 +14,7 @@
 		"svelte": "^3.56.0",
 		"svelte-check": "^3.0.2",
 		"typescript": "^4.9.4",
-		"vite": "^4.1.1"
+		"vite": "^4.2.0"
 	},
 	"type": "module"
 }
diff --git a/packages/kit/test/build-errors/apps/syntax-error/package.json b/packages/kit/test/build-errors/apps/syntax-error/package.json
index abf51a663..c80a8f6d0 100644
--- a/packages/kit/test/build-errors/apps/syntax-error/package.json
+++ b/packages/kit/test/build-errors/apps/syntax-error/package.json
@@ -12,7 +12,7 @@
 		"svelte": "^3.56.0",
 		"svelte-check": "^3.0.2",
 		"typescript": "^4.9.4",
-		"vite": "^4.1.1"
+		"vite": "^4.2.0"
 	},
 	"type": "module"
 }
diff --git a/packages/kit/test/prerendering/basics/package.json b/packages/kit/test/prerendering/basics/package.json
index 25fd6e98f..c182f96d2 100644
--- a/packages/kit/test/prerendering/basics/package.json
+++ b/packages/kit/test/prerendering/basics/package.json
@@ -16,7 +16,7 @@
 		"svelte-check": "^3.0.2",
 		"typescript": "^4.9.4",
 		"uvu": "^0.5.6",
-		"vite": "^4.1.1"
+		"vite": "^4.2.0"
 	},
 	"type": "module"
 }
diff --git a/packages/kit/test/prerendering/options/package.json b/packages/kit/test/prerendering/options/package.json
index fd69aea94..a8883af78 100644
--- a/packages/kit/test/prerendering/options/package.json
+++ b/packages/kit/test/prerendering/options/package.json
@@ -15,7 +15,7 @@
 		"svelte-check": "^3.0.2",
 		"typescript": "^4.9.4",
 		"uvu": "^0.5.6",
-		"vite": "^4.1.1"
+		"vite": "^4.2.0"
 	},
 	"type": "module"
 }
diff --git a/packages/kit/test/prerendering/paths-base/package.json b/packages/kit/test/prerendering/paths-base/package.json
index 48746aede..44fdcefb0 100644
--- a/packages/kit/test/prerendering/paths-base/package.json
+++ b/packages/kit/test/prerendering/paths-base/package.json
@@ -15,7 +15,7 @@
 		"svelte-check": "^3.0.2",
 		"typescript": "^4.9.4",
 		"uvu": "^0.5.6",
-		"vite": "^4.1.1"
+		"vite": "^4.2.0"
 	},
 	"type": "module"
 }