From 3de477137ac14e3cac5ae5350d2e4e3728dc4d37 Mon Sep 17 00:00:00 2001 From: Rich-Harris Date: Wed, 31 Aug 2016 23:11:55 -0400 Subject: [PATCH] fix rollup-watch (#887) --- bin/src/runRollup.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/src/runRollup.js b/bin/src/runRollup.js index 70e028e..53a6231 100644 --- a/bin/src/runRollup.js +++ b/bin/src/runRollup.js @@ -1,5 +1,5 @@ import { realpathSync } from 'fs'; -import { rollup } from 'rollup'; +import * as rollup from 'rollup'; import relative from 'require-relative'; import handleError from './handleError'; import SOURCEMAPPING_URL from './sourceMappingUrl.js'; @@ -57,7 +57,7 @@ export default function runRollup ( command ) { config = realpathSync( config ); } - rollup({ + rollup.rollup({ entry: config, onwarn: message => { if ( /Treating .+ as external dependency/.test( message ) ) return; @@ -216,7 +216,7 @@ function bundle ( options ) { handleError({ code: 'MISSING_INPUT_OPTION' }); } - return rollup( options ).then( bundle => { + return rollup.rollup( options ).then( bundle => { if ( options.dest ) { return bundle.write( options ); }