|
|
@ -1,10 +1,9 @@ |
|
|
|
import { realpathSync } from 'fs'; |
|
|
|
import { rollup } from 'rollup'; |
|
|
|
import relative from 'require-relative'; |
|
|
|
import handleError from './handleError'; |
|
|
|
import SOURCEMAPPING_URL from './sourceMappingUrl.js'; |
|
|
|
|
|
|
|
const rollup = require( '../dist/rollup.js' ); // TODO make this an import, somehow
|
|
|
|
|
|
|
|
import { install as installSourcemapSupport } from 'source-map-support'; |
|
|
|
installSourcemapSupport(); |
|
|
|
|
|
|
@ -58,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; |
|
|
@ -217,7 +216,7 @@ function bundle ( options ) { |
|
|
|
handleError({ code: 'MISSING_INPUT_OPTION' }); |
|
|
|
} |
|
|
|
|
|
|
|
return rollup.rollup( options ).then( bundle => { |
|
|
|
return rollup( options ).then( bundle => { |
|
|
|
if ( options.dest ) { |
|
|
|
return bundle.write( options ); |
|
|
|
} |
|
|
|