|
|
@ -1,5 +1,6 @@ |
|
|
|
import { basename } from './utils/path'; |
|
|
|
import { writeFile } from 'sander'; |
|
|
|
import { keys } from './utils/object'; |
|
|
|
import Bundle from './Bundle'; |
|
|
|
|
|
|
|
let SOURCEMAPPING_URL = 'sourceMa'; |
|
|
@ -14,6 +15,9 @@ export function rollup ( options ) { |
|
|
|
|
|
|
|
return bundle.build().then( () => { |
|
|
|
return { |
|
|
|
imports: bundle.externalModules.map( module => module.id ), |
|
|
|
exports: keys( bundle.entryModule.exports ), |
|
|
|
|
|
|
|
generate: options => bundle.generate( options ), |
|
|
|
write: options => { |
|
|
|
if ( !options || !options.dest ) { |
|
|
|