The Skeleton component at plugins/woocommerce/client/blocks/assets/js/base/components/skeleton/ is not exported by any npm package and is not available for use by external extensions.
- Imported via the webpack alias
@woocommerce/base-components/skeleton - This alias is defined in
webpack-helpers.js#L55and resolves toassets/js/base/components/ @woocommerce/base-componentsis not a real npm package — it only exists at build time within the blocks webpack config
The externally consumable package for shared block components is @woocommerce/blocks-components, which:
- Is exposed on the global scope as
wc.blocksComponents - Is registered as the
wc-blocks-componentsWordPress script handle - Has its externals mapping defined in
webpack-helpers.js#L21 - Has its exports defined in
packages/components/index.ts
Skeleton is not listed in that file's exports.
An extension such as WooCommerce Payments cannot import the Skeleton component from any published package. To make it available externally, it would need to be added to the @woocommerce/blocks-components exports.