tasks/bundles.js
function ( pkg ) {
			grunt.verbose.writeln( "Populating compiler" );
			var copts = {
				noParse             : pkg.noParse,
				entries             : pkg.modules,
				externalRequireName : options.externalRequireName,
				pack                : options.pack,
				bundleExternal      : options.bundleExternal,
//				builtins            : options.builtins,
				fullPaths           : options.fullPaths,
				commondir           : options.commondir,
				basedir             : options.basedir,
				extensions          : options.extensions
			}

			if ( !sys.isEmpty( options.builtins ) ) {
				copts.builtins = options.builtins;
			}

			var compiler = browsCompiler( copts );
			sys.each( pkg.exec, function ( item ) {
				compiler.add( item );
			} );

			sys.each( pkg.aliases, function ( item, name ) {

				compiler.require( item, {expose : name} );
			} );

			sys.each( pkg.publish, function ( item ) {
				compiler.require( item );
			} );

			sys.each( pkg.externals, function ( item ) {
				compiler.external( item );
			} );

			sys.each( pkg.ignore, function ( item ) {
				compiler.ignore( item );
			} );

			return compiler;
		}
function ( pkg ) {
			grunt.verbose.writeln( "Populating compiler" );
			var copts = {
				noParse             : pkg.noParse,
				entries             : pkg.modules,
				externalRequireName : options.externalRequireName,
				pack                : options.pack,
				bundleExternal      : options.bundleExternal,
//				builtins            : options.builtins,
				fullPaths           : options.fullPaths,
				commondir           : options.commondir,
				basedir             : options.basedir,
				extensions          : options.extensions
			}

			if ( !sys.isEmpty( options.builtins ) ) {
				copts.builtins = options.builtins;
			}

			var compiler = browsCompiler( copts );
			sys.each( pkg.exec, function ( item ) {
				compiler.add( item );
			} );

			sys.each( pkg.aliases, function ( item, name ) {

				compiler.require( item, {expose : name} );
			} );

			sys.each( pkg.publish, function ( item ) {
				compiler.require( item );
			} );

			sys.each( pkg.externals, function ( item ) {
				compiler.external( item );
			} );

			sys.each( pkg.ignore, function ( item ) {
				compiler.ignore( item );
			} );

			return compiler;
		}
function ( pkg ) { grunt . verbose . writeln ( "Populating compiler" ) ; var copts = { noParse : pkg . noParse , entries : pkg . modules , externalRequireName : options . externalRequireName , pack : options . pack , bundleExternal : options . bundleExternal , //				builtins            : options.builtins, fullPaths : options . fullPaths , commondir : options . commondir , basedir : options . basedir , extensions : options . extensions } if ( ! sys . isEmpty ( options . builtins ) ) { copts . builtins = options . builtins ; } var compiler = browsCompiler ( copts ) ; sys . each ( pkg . exec , function ( item ) { compiler . add ( item ) ; } ) ; sys . each ( pkg . aliases , function ( item , name ) { compiler . require ( item , { expose : name } ) ; } ) ; sys . each ( pkg . publish , function ( item ) { compiler . require ( item ) ; } ) ; sys . each ( pkg . externals , function ( item ) { compiler . external ( item ) ; } ) ; sys . each ( pkg . ignore , function ( item ) { compiler . ignore ( item ) ; } ) ; return compiler ; }
Create the browserify instance and prep it
Create the browserify instance and prep it