WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\Assets

Api::get_block_asset_build_path() public WC 1.0

Returns the appropriate asset path for loading either legacy builds or current builds.

{} It's a method of the class: Api{}

No Hooks.

Return

String. The generated path.

Usage

$Api = new Api();
$Api->get_block_asset_build_path( $filename, $type );
$filename(string) (required)
Filename for asset path (without extension).
$type(string)
File type (.css or .js).
Default: 'js'

Code of Api::get_block_asset_build_path() WC 5.6.0

public function get_block_asset_build_path( $filename, $type = 'js' ) {
	global $wp_version;
	$suffix = version_compare( $wp_version, '5.3', '>=' )
		? ''
		: '-legacy';
	return "build/$filename$suffix.$type";
}