Skip to content

Commit

Permalink
fix(hmr): fix config reload (#1588)
Browse files Browse the repository at this point in the history
* fix(hmr): fix config reload

* chore(changeset): add changeset

* refactor(core): remove pure restart

---------

Co-authored-by: ADNY <66500121+ErKeLost@users.noreply.github.com>
  • Loading branch information
fu050409 and ErKeLost authored Jul 17, 2024
1 parent eaef911 commit 735117a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/five-dolls-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@farmfe/core": patch
---

Fix config reload
5 changes: 4 additions & 1 deletion packages/core/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ async function getDefaultConfig(
logger
);

resolvedUserConfig.server = normalizeDevServerConfig(inlineOptions, mode);
resolvedUserConfig.server = normalizeDevServerConfig(
inlineOptions.server,
mode
);

resolvedUserConfig.compilation = await normalizeUserCompilationConfig(
resolvedUserConfig,
Expand Down

0 comments on commit 735117a

Please sign in to comment.