From 5cda571999571a6a13d36031bcd18877f6567ca3 Mon Sep 17 00:00:00 2001 From: "Fred K. Schott" Date: Tue, 8 Jun 2021 10:54:10 -0700 Subject: [PATCH] watch files during development both frontend and backend (#336) --- .changeset/fair-students-cough.md | 5 +++++ packages/astro/src/runtime.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/fair-students-cough.md diff --git a/.changeset/fair-students-cough.md b/.changeset/fair-students-cough.md new file mode 100644 index 000000000..f8ce8d6c9 --- /dev/null +++ b/.changeset/fair-students-cough.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fix an issue with how files are watched during development diff --git a/packages/astro/src/runtime.ts b/packages/astro/src/runtime.ts index 76c831601..8a9ff1548 100644 --- a/packages/astro/src/runtime.ts +++ b/packages/astro/src/runtime.ts @@ -428,7 +428,7 @@ async function createSnowpack(astroConfig: AstroConfig, options: CreateSnowpackO lockfile: null, }, { - isWatch: isHmrEnabled, + isWatch: mode === 'development', } ); const snowpackRuntime = snowpack.getServerRuntime();