diff --git a/.changeset/five-dolls-burn.md b/.changeset/five-dolls-burn.md new file mode 100644 index 000000000..420b91e5e --- /dev/null +++ b/.changeset/five-dolls-burn.md @@ -0,0 +1,5 @@ +--- +"@farmfe/core": patch +--- + +Fix config reload diff --git a/packages/core/src/config/index.ts b/packages/core/src/config/index.ts index 51c7ad7b8..a5ae0ddc3 100644 --- a/packages/core/src/config/index.ts +++ b/packages/core/src/config/index.ts @@ -101,7 +101,10 @@ async function getDefaultConfig( logger ); - resolvedUserConfig.server = normalizeDevServerConfig(inlineOptions, mode); + resolvedUserConfig.server = normalizeDevServerConfig( + inlineOptions.server, + mode + ); resolvedUserConfig.compilation = await normalizeUserCompilationConfig( resolvedUserConfig,