mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
10 years ago
3 changed files with 45 additions and 11 deletions
@ -1,3 +1,11 @@ |
|||
export default function cjs ( bundle, magicString, options ) { |
|||
return magicString; |
|||
const intro = `'use strict';\n\n`; |
|||
|
|||
// TODO group modules more intelligently
|
|||
bundle.externalModules.forEach( module => { |
|||
console.log( 'module', module ); |
|||
//intro += `var
|
|||
}); |
|||
|
|||
return magicString.prepend( intro ); |
|||
} |
Loading…
Reference in new issue