diff --git a/bin/runRollup.js b/bin/runRollup.js index 4870180..4c2e5e2 100644 --- a/bin/runRollup.js +++ b/bin/runRollup.js @@ -40,7 +40,12 @@ module.exports = function ( command ) { } }; - const options = require( path.resolve( config ) ); + try { + var options = require( path.resolve( config ) ); + } catch ( err ) { + handleError( err ); + } + execute( options, command ); require.extensions[ '.js' ] = defaultLoader;