From e63b61f75de02f9422e96723b266725d3e900ac4 Mon Sep 17 00:00:00 2001 From: witsaint Date: Fri, 6 Dec 2024 10:05:43 +0800 Subject: [PATCH] chore(core): ternary operator type --- packages/core/src/config.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/src/config.ts b/packages/core/src/config.ts index c56874122d..30d4b435f5 100644 --- a/packages/core/src/config.ts +++ b/packages/core/src/config.ts @@ -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)}`);