Skip to content

Commit

Permalink
chore(core): ternary operator type
Browse files Browse the repository at this point in the history
  • Loading branch information
witsaint committed Dec 6, 2024
1 parent 4519b98 commit e63b61f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -462,9 +462,9 @@ export async function loadConfig({
interopDefault: true,
});
const exportModule = loadConfig(configFilePath);
configExport = exportModule.default
? exportModule.default
: (exportModule as RsbuildConfigExport);
configExport = (
exportModule.default ? exportModule.default : exportModule
) as RsbuildConfigExport;
}
} catch (err) {
logger.error(`Failed to load file with jiti: ${color.dim(configFilePath)}`);
Expand Down

0 comments on commit e63b61f

Please sign in to comment.