watch files during development both frontend and backend (#336)

This commit is contained in:
Fred K. Schott 2021-06-08 10:54:10 -07:00 committed by GitHub
parent 8dd3f106ca
commit 5cda571999
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fix an issue with how files are watched during development

View file

@ -428,7 +428,7 @@ async function createSnowpack(astroConfig: AstroConfig, options: CreateSnowpackO
lockfile: null,
},
{
isWatch: isHmrEnabled,
isWatch: mode === 'development',
}
);
const snowpackRuntime = snowpack.getServerRuntime();