Prevent Svelte HMR warning during the build (#4057)
This commit is contained in:
parent
44694d8a90
commit
40251118f8
2 changed files with 10 additions and 0 deletions
5
.changeset/lucky-phones-mix.md
Normal file
5
.changeset/lucky-phones-mix.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@astrojs/svelte': patch
|
||||
---
|
||||
|
||||
Remove Svelte HMR warning during the build
|
|
@ -38,6 +38,11 @@ function getViteConfiguration({
|
|||
],
|
||||
};
|
||||
|
||||
// Disable hot mode during the build
|
||||
if(!isDev) {
|
||||
defaultOptions.hot = false;
|
||||
}
|
||||
|
||||
let resolvedOptions: Partial<Options>;
|
||||
|
||||
if (!options) {
|
||||
|
|
Loading…
Reference in a new issue