Browse Source

include imports/exports in bundle object

contingency-plan
Rich-Harris 10 years ago
parent
commit
62241d523d
  1. 4
      src/rollup.js

4
src/rollup.js

@ -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 ) {

Loading…
Cancel
Save