diff --git a/cli/src/config.ts b/cli/src/config.ts index cd387d0185..d66b25fcbf 100644 --- a/cli/src/config.ts +++ b/cli/src/config.ts @@ -80,12 +80,14 @@ async function loadExtConfigTS( } const ts = require(tsPath); // eslint-disable-line @typescript-eslint/no-var-requires + const extConfigObject = requireTS(ts, extConfigFilePath) as any; + const extConfig = extConfigObject.default ?? extConfigObject; return { extConfigType: 'ts', extConfigName, extConfigFilePath: extConfigFilePath, - extConfig: requireTS(ts, extConfigFilePath) as any, + extConfig, }; } catch (e) { if (!isFatal(e)) {