We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7ab6ce commit fefafecCopy full SHA for fefafec
src/build.ts
@@ -30,8 +30,9 @@ export async function build(
30
// Create jiti instance for loading initial config
31
const jiti = createJiti(rootDir, { interopDefault: true });
32
33
- const _buildConfig: BuildConfig | BuildConfig[] =
+ let _buildConfig: BuildConfig | BuildConfig[] =
34
(await jiti.import("./build.config", { try: true })) || {};
35
+ _buildConfig = (_buildConfig as any).default || _buildConfig;
36
const buildConfigs = (
37
Array.isArray(_buildConfig) ? _buildConfig : [_buildConfig]
38
).filter(Boolean);
0 commit comments