lib/stream/adjust_bundles_path.js
function adjustBundlesPath(data, options) {
	var path = require("path");
	var configuration = clone(data.configuration);

	var bundlesPath = configuration.bundlesPath;
	Object.defineProperty(configuration, "bundlesPath", {
		configurable: true,
		get: function() {
			return path.join(bundlesPath, options.target);
		}
	});

	return assign({}, omit(data, ["configuration"]), {
		configuration: configuration
	});
}
function adjustBundlesPath(data, options) {
	var path = require("path");
	var configuration = clone(data.configuration);

	var bundlesPath = configuration.bundlesPath;
	Object.defineProperty(configuration, "bundlesPath", {
		configurable: true,
		get: function() {
			return path.join(bundlesPath, options.target);
		}
	});

	return assign({}, omit(data, ["configuration"]), {
		configuration: configuration
	});
}
function adjustBundlesPath ( data , options ) { var path = require ( "path" ) ; var configuration = clone ( data . configuration ) ; var bundlesPath = configuration . bundlesPath ; Object . defineProperty ( configuration , "bundlesPath" , { configurable : true , get : function ( ) { return path . join ( bundlesPath , options . target ) ; } } ) ; return assign ( { } , omit ( data , [ "configuration" ] ) , { configuration : configuration } ) ; }
Appends the target name to the bundles path

Each target build should be written in its own subfolder, e.g:

dist/bundles/node
dist/bundles/web
dist/bundles/worker

This should only happen when target is explicitly set.
Appends the target name to the bundles path