From b901bf76dee2220fb0349fca8d9250ea8e09fdb4 Mon Sep 17 00:00:00 2001 From: Greg Brimble Date: Sun, 9 Jan 2022 20:14:53 +0000 Subject: [PATCH] Fix the watch option of wrangler pages functions build (#225) --- .changeset/brown-planes-sip.md | 5 +++++ packages/wrangler/src/pages.tsx | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/brown-planes-sip.md diff --git a/.changeset/brown-planes-sip.md b/.changeset/brown-planes-sip.md new file mode 100644 index 000000000000..37e88cc93d36 --- /dev/null +++ b/.changeset/brown-planes-sip.md @@ -0,0 +1,5 @@ +--- +"wrangler": patch +--- + +Fix the `--watch` command for `wrangler pages functions build`. diff --git a/packages/wrangler/src/pages.tsx b/packages/wrangler/src/pages.tsx index 95b238e1c1b3..32dca0464d5a 100644 --- a/packages/wrangler/src/pages.tsx +++ b/packages/wrangler/src/pages.tsx @@ -986,6 +986,7 @@ export const pages: BuilderCallback = (yargs) => { minify, sourcemap, fallbackService, + watch, }) => { const functionsDirectory = "./functions"; @@ -995,6 +996,7 @@ export const pages: BuilderCallback = (yargs) => { minify, sourcemap, fallbackService, + watch, }); } )