Prevent Svelte HMR warning during the build (#4057)

This commit is contained in:
Matthew Phillips 2022-07-26 14:04:26 -04:00 committed by GitHub
parent 44694d8a90
commit 40251118f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'@astrojs/svelte': patch
---
Remove Svelte HMR warning during the build

View file

@ -38,6 +38,11 @@ function getViteConfiguration({
],
};
// Disable hot mode during the build
if(!isDev) {
defaultOptions.hot = false;
}
let resolvedOptions: Partial<Options>;
if (!options) {