Skip to content

Commit

Permalink
fix(loader): clone preset object
Browse files Browse the repository at this point in the history
  • Loading branch information
huang-julien committed Jan 8, 2025
1 parent 9a71720 commit 84bb322
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/config/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type {
NitroOptions,
NitroPresetMeta,
} from "nitro/types";

import { defu } from "defu"
import { NitroDefaults } from "./defaults";

import { resolveAssetsOptions } from "./resolvers/assets";
Expand Down Expand Up @@ -125,7 +125,7 @@ async function _loadUserConfig(
});
if (preset) {
return {
config: preset,
config: defu(preset),
};
}
},
Expand Down

0 comments on commit 84bb322

Please sign in to comment.