Skip to content

Commit 1df63bb

Browse files
manuel3108benmccannRich-Harrisdominikg
authored
fix: warning for chrome devtools requests now suggests sv instead of vite plugin (#13905)
* fix: warning for chrome devtools requests now suggests sv instead of vite plugin * Update packages/kit/src/runtime/server/respond.js Co-authored-by: Ben McCann <[email protected]> * Update packages/kit/src/runtime/server/respond.js Co-authored-by: Rich Harris <[email protected]> * Update packages/kit/src/runtime/server/respond.js Co-authored-by: Dominik G. <[email protected]> * Update packages/kit/src/runtime/server/respond.js Co-authored-by: Dominik G. <[email protected]> --------- Co-authored-by: Ben McCann <[email protected]> Co-authored-by: Rich Harris <[email protected]> Co-authored-by: Dominik G. <[email protected]>
1 parent e66f1d8 commit 1df63bb

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.changeset/tame-teachers-listen.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/kit': patch
3+
---
4+
5+
fix: warning for chrome devtools requests now suggests sv instead of vite plugin

packages/kit/src/runtime/server/respond.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -577,11 +577,11 @@ export async function respond(request, options, manifest, state) {
577577
if (state.depth === 0) {
578578
// In local development, Chrome requests this file for its 'automatic workspace folders' feature,
579579
// causing console spam. If users want to serve this file they can install
580-
// https://github.com/ChromeDevTools/vite-plugin-devtools-json
580+
// https://svelte.dev/docs/cli/devtools-json
581581
if (DEV && event.url.pathname === '/.well-known/appspecific/com.chrome.devtools.json') {
582582
if (!warned_on_devtools_json_request) {
583-
console.warn(
584-
`\nGoogle Chrome is requesting ${event.url.pathname} to automatically configure devtools project settings. To serve this file, add this plugin to your Vite config:\n\nhttps://github.com/ChromeDevTools/vite-plugin-devtools-json\n`
583+
console.log(
584+
`\nGoogle Chrome is requesting ${event.url.pathname} to automatically configure devtools project settings. To learn why, and how to prevent this message, see https://svelte.dev/docs/cli/devtools-json\n`
585585
);
586586

587587
warned_on_devtools_json_request = true;

0 commit comments

Comments
 (0)