Generator: Fixed crash when no external script needs to be compiled

pull/4386/head
Laurent Cozic 2021-01-14 15:47:34 +00:00
parent 4a230d7cd5
commit e559999aa4
1 changed files with 6 additions and 0 deletions

View File

@ -270,4 +270,10 @@ try {
process.exit(1);
}
if (!exportedConfigs.length) {
// Nothing to do - for example where there are no external scripts to
// compile.
process.exit(0);
}
module.exports = exportedConfigs;