diff options
author | 2021-06-08 10:54:10 -0700 | |
---|---|---|
committer | 2021-06-08 10:54:10 -0700 | |
commit | 5cda571999571a6a13d36031bcd18877f6567ca3 (patch) | |
tree | 105f0bbe104182350e1e6509407bd0d65d71e377 | |
parent | 8dd3f106ca4c59e8192d87ba21afc6c54189a9ef (diff) | |
download | astro-5cda571999571a6a13d36031bcd18877f6567ca3.tar.gz astro-5cda571999571a6a13d36031bcd18877f6567ca3.tar.zst astro-5cda571999571a6a13d36031bcd18877f6567ca3.zip |
watch files during development both frontend and backend (#336)
-rw-r--r-- | .changeset/fair-students-cough.md | 5 | ||||
-rw-r--r-- | packages/astro/src/runtime.ts | 2 |
2 files changed, 6 insertions, 1 deletions
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(); |