Skip to content

Commit

Permalink
fix: do not return undefined build config (#626)
Browse files Browse the repository at this point in the history
  • Loading branch information
veinfors committed Jun 30, 2021
1 parent f61965f commit ba3c823
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/build/lib/init-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ module.exports = (yargs) => {
}
throw new Error(`Config ${configPath} not found`);
}
return require(configPath).build;
return require(configPath).build || {};
});
};

0 comments on commit ba3c823

Please sign in to comment.