index.js
function( bundleJSON, bundlePath, tempName ) {

		// Update path in config
		if (!config['path'])
			config['path'] = path.dirname(bundlePath);

		// Create the JBB bundle
		JBBCompiler.compile(
				bundleJSON,
				tempName,
				config,
				function() {

					// Check for sparse bundles
					if (config['sparse']) {
						resultCallback( null, {
							'basename': tempName,
							'suffix': [
								'.jbbp', '_b16.jbbp', 
							  	'_b32.jbbp', '_b64.jbbp' 
							]
						}); 
					} else {
						// Trigger callback
						resultCallback( null, {
							'basename': tempName,
							'suffix': [ '.jbb' ]
						});
					}

				}
			);

	}
function( bundleJSON, bundlePath, tempName ) {

		// Update path in config
		if (!config['path'])
			config['path'] = path.dirname(bundlePath);

		// Create the JBB bundle
		JBBCompiler.compile(
				bundleJSON,
				tempName,
				config,
				function() {

					// Check for sparse bundles
					if (config['sparse']) {
						resultCallback( null, {
							'basename': tempName,
							'suffix': [
								'.jbbp', '_b16.jbbp', 
							  	'_b32.jbbp', '_b64.jbbp' 
							]
						}); 
					} else {
						// Trigger callback
						resultCallback( null, {
							'basename': tempName,
							'suffix': [ '.jbb' ]
						});
					}

				}
			);

	}
function ( bundleJSON , bundlePath , tempName ) { // Update path in config if ( ! config [ 'path' ] ) config [ 'path' ] = path . dirname ( bundlePath ) ; // Create the JBB bundle JBBCompiler . compile ( bundleJSON , tempName , config , function ( ) { // Check for sparse bundles if ( config [ 'sparse' ] ) { resultCallback ( null , { 'basename' : tempName , 'suffix' : [ '.jbbp' , '_b16.jbbp' , '_b32.jbbp' , '_b64.jbbp' ] } ) ; } else { // Trigger callback resultCallback ( null , { 'basename' : tempName , 'suffix' : [ '.jbb' ] } ) ; } } ) ; }
Continue compiling the JBB bundle
Continue compiling the JBB bundle