lib/stream/add_plugin_names.js
function addPluginName(data) {
	var loader = data.loader;
	var bundles = data.bundles;

	var promises = bundles.map(function(bundle) {
		if (!isJavaScriptBundle(bundle)) {
			return loader.normalize(bundle.name).then(function(name) {
				bundle.pluginName = name.substring(name.indexOf("!") + 1);
			});
		}
	});

	return Promise.all(promises).then(function() {
		return data;
	});
}
function addPluginName(data) {
	var loader = data.loader;
	var bundles = data.bundles;

	var promises = bundles.map(function(bundle) {
		if (!isJavaScriptBundle(bundle)) {
			return loader.normalize(bundle.name).then(function(name) {
				bundle.pluginName = name.substring(name.indexOf("!") + 1);
			});
		}
	});

	return Promise.all(promises).then(function() {
		return data;
	});
}
function addPluginName ( data ) { var loader = data . loader ; var bundles = data . bundles ; var promises = bundles . map ( function ( bundle ) { if ( ! isJavaScriptBundle ( bundle ) ) { return loader . normalize ( bundle . name ) . then ( function ( name ) { bundle . pluginName = name . substring ( name . indexOf ( "!" ) + 1 ) ; } ) ; } } ) ; return Promise . all ( promises ) . then ( function ( ) { return data ; } ) ; }
Adds `pluginName` property to non JS bundles
Adds pluginName property to non JS bundles