Skip to content

Commit

Permalink
Fix compile loop with _worker.js and wrangler pages dev (#2873)
Browse files Browse the repository at this point in the history
  • Loading branch information
GregBrimble committed Mar 8, 2023
1 parent 55d99cd commit 5bcc333
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/heavy-rockets-destroy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wrangler": patch
---

fix: Prevent compile loop when using `_worker.js` and `wrangler pages dev`
2 changes: 1 addition & 1 deletion packages/wrangler/src/pages/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ export const Handler = async ({
}

await runBuild();
watch([scriptPath], {
watch([workerScriptPath], {
persistent: true,
ignoreInitial: true,
}).on("all", async () => {
Expand Down

0 comments on commit 5bcc333

Please sign in to comment.