From 52c31112b5f8ce04c3ae0222cefdbb2fe223b297 Mon Sep 17 00:00:00 2001 From: Magnus Dahlstrand Date: Wed, 31 Jan 2024 17:15:17 +0000 Subject: [PATCH] !fixup: [wrangler] fix: stop rebuild attempts when sources are missing (#3886) --- .changeset/hip-files-count.md | 4 ++-- fixtures/pages-workerjs-app/workerjs-test/_routes.json | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.changeset/hip-files-count.md b/.changeset/hip-files-count.md index 64b2b0a0fdc4..c57605c15904 100644 --- a/.changeset/hip-files-count.md +++ b/.changeset/hip-files-count.md @@ -6,5 +6,5 @@ fix: Do not show unnecessary errors during watch rebuilds When Pages is used in conjunction with a full stack framework, the framework build will temporarily remove files that are being watched by Pages, such as -_worker.js and _routes.json. -Previously we would display errors for these changes, which adds confusing and excessive messages to the Pages dev output. Now builds are skipped if a watched _worker.js or _routes.json is removed. +`_worker.js` and `_routes.json`. +Previously we would display errors for these changes, which adds confusing and excessive messages to the Pages dev output. Now builds are skipped if a watched `_worker.js` or `_routes.json` is removed. diff --git a/fixtures/pages-workerjs-app/workerjs-test/_routes.json b/fixtures/pages-workerjs-app/workerjs-test/_routes.json index ecf7343859e6..1cf79313f314 100644 --- a/fixtures/pages-workerjs-app/workerjs-test/_routes.json +++ b/fixtures/pages-workerjs-app/workerjs-test/_routes.json @@ -1,8 +1,6 @@ { "version": 1, "description": "", - "include": [ - "/*" - ], + "include": ["/*"], "exclude": [] -} \ No newline at end of file +}