We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a64317b commit 2883209Copy full SHA for 2883209
packages/react-router-dev/config/config.ts
@@ -407,8 +407,8 @@ async function resolveConfig({
407
408
let configPreset = reactRouterConfig;
409
410
- if ("presets" in reactRouterConfig) {
411
- configPreset = omit(reactRouterConfig, excludedConfigPresetKeys);
+ if (configPreset != null && "presets" in configPreset) {
+ configPreset = omit(configPreset, excludedConfigPresetKeys);
412
}
413
414
return configPreset;
0 commit comments