Skip to content

Commit

Permalink
chore: remove extra default check
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Oct 5, 2024
1 parent c5e0b89 commit b380758
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ export async function build(
// Create jiti instance for loading initial config
const jiti = createJiti(rootDir);

let _buildConfig: BuildConfig | BuildConfig[] =
const _buildConfig: BuildConfig | BuildConfig[] =
(await jiti.import("./build.config", { try: true, default: true })) || {};
_buildConfig = (_buildConfig as any).default || _buildConfig;

const buildConfigs = (
Array.isArray(_buildConfig) ? _buildConfig : [_buildConfig]
).filter(Boolean);
Expand Down

0 comments on commit b380758

Please sign in to comment.