Check if there is a built code (#5415)

This commit is contained in:
Aya Morisawa 2019-09-10 17:15:38 +09:00 committed by syuilo
parent b719d43049
commit c9e33f665e

View File

@ -1 +1,7 @@
const fs = require('fs');
if (fs.existsSync('./built')) {
require('./built').default(); require('./built').default();
} else {
console.log('Built code is not found. Probably an error occurred during a build or you just forgot to build.');
}