Api::get_dependencies( string $asset_relative_path, array $extra_dependencies = array() )
Returns the dependency array for the given asset relative path.
Description Description
Parameters Parameters
- $asset_relative_path
-
(Required) Something like 'build/constants.js' considered to be relative to the main asset path.
- $extra_dependencies
-
(Optional) Extra dependencies to be explicitly added to the generated array.
Default value: array()
Return Return
(array) An array of dependencies
Source Source
File: woocommerce/packages/woocommerce-blocks/src/Assets/Api.php