lib/graph/slim_graph.js
function isExcludedFromBuild(node) {
	if (node.load.excludeFromBuild) {
		return true;
	}

	if (
		node.load.metadata &&
		node.load.metadata.hasOwnProperty("bundle") &&
		node.load.metadata.bundle === false
	) {
		return true;
	}

	if (
		node.isPlugin &&
		!node.value.includeInBuild &&
		!node.load.metadata.includeInBuild
	) {
		return true;
	}

	return false;
}
function isExcludedFromBuild(node) {
	if (node.load.excludeFromBuild) {
		return true;
	}

	if (
		node.load.metadata &&
		node.load.metadata.hasOwnProperty("bundle") &&
		node.load.metadata.bundle === false
	) {
		return true;
	}

	if (
		node.isPlugin &&
		!node.value.includeInBuild &&
		!node.load.metadata.includeInBuild
	) {
		return true;
	}

	return false;
}
function isExcludedFromBuild ( node ) { if ( node . load . excludeFromBuild ) { return true ; } if ( node . load . metadata && node . load . metadata . hasOwnProperty ( "bundle" ) && node . load . metadata . bundle === false ) { return true ; } if ( node . isPlugin && ! node . value . includeInBuild && ! node . load . metadata . includeInBuild ) { return true ; } return false ; }
Whether the node is flagged to be removed from the build
@param {Object} node - A node from a bundle
@return {boolean} `true` if flagged, `false` otherwise
Whether the node is flagged to be removed from the build