@@ -69,9 +69,11 @@ module.exports = function( grunt ) {
6969 * Indicates we're walking a directory
7070 */
7171 const excludeList = ( list , prepend ) => {
72+ console . log ( "excludeList" , list , prepend ) ;
7273 if ( list ) {
7374 prepend = prepend ? `${ prepend } /` : "" ;
7475 list . forEach ( function ( module ) {
76+ console . log ( "module" , module ) ;
7577
7678 // Exclude var modules as well
7779 if ( module === "var" ) {
@@ -108,6 +110,7 @@ module.exports = function( grunt ) {
108110 * whether it should included or excluded
109111 */
110112 const excluder = flag => {
113+ console . log ( "excluder" , flag ) ;
111114 let additional ;
112115 const m = / ^ ( \+ | \- | ) ( [ \w \/ - ] + ) $ / . exec ( flag ) ;
113116 const exclude = m [ 1 ] === "-" ;
@@ -225,17 +228,23 @@ module.exports = function( grunt ) {
225228
226229 // Replace excluded modules with empty sources.
227230 for ( const module of excluded ) {
231+ console . log ( "Erasing... " , `${ srcFolder } /${ module } .js` ) ;
228232 rollupHypotheticalOptions . files [ `${ srcFolder } /${ module } .js` ] = "" ;
229233 }
230234 }
231235
236+ console . log ( "included" , included ) ;
237+ console . log ( "excluded" , excluded ) ;
238+
232239 // Turn off opt-in if necessary
233240 if ( ! optIn ) {
234241
235242 // Remove the default inclusions, they will be overwritten with the explicitly
236243 // included ones.
237244 rollupHypotheticalOptions . files [ inputRollupOptions . input ] = "" ;
238245
246+ console . log ( `1 rollupHypotheticalOptions.files[ ${ inputRollupOptions . input } ]` ,
247+ rollupHypotheticalOptions . files [ inputRollupOptions . input ] ) ;
239248 }
240249
241250 // Import the explicitly included modules.
@@ -245,6 +254,9 @@ module.exports = function( grunt ) {
245254 . join ( "\n" ) ;
246255 }
247256
257+ console . log ( `2 rollupHypotheticalOptions.files[ ${ inputRollupOptions . input } ]` ,
258+ rollupHypotheticalOptions . files [ inputRollupOptions . input ] ) ;
259+
248260 const bundle = await rollup . rollup ( {
249261 ...inputRollupOptions ,
250262 plugins : [ rollupHypothetical ( rollupHypotheticalOptions ) ]
0 commit comments