Browse Source

handle errors in build config

better-aggressive
Rich Harris 9 years ago
parent
commit
fe56116264
  1. 7
      bin/runRollup.js

7
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;

Loading…
Cancel
Save