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