Skip to content

Commit fefafec

Browse files
committed
fix(config): only take default export
1 parent f7ab6ce commit fefafec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/build.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ export async function build(
3030
// Create jiti instance for loading initial config
3131
const jiti = createJiti(rootDir, { interopDefault: true });
3232

33-
const _buildConfig: BuildConfig | BuildConfig[] =
33+
let _buildConfig: BuildConfig | BuildConfig[] =
3434
(await jiti.import("./build.config", { try: true })) || {};
35+
_buildConfig = (_buildConfig as any).default || _buildConfig;
3536
const buildConfigs = (
3637
Array.isArray(_buildConfig) ? _buildConfig : [_buildConfig]
3738
).filter(Boolean);

0 commit comments

Comments
 (0)