Skip to content

Instantly share code, notes, and snippets.

@htdat
Created March 9, 2026 16:29
Show Gist options
  • Select an option

  • Save htdat/6e5a5cdad7662b6f5e15d1c27c46099f to your computer and use it in GitHub Desktop.

Select an option

Save htdat/6e5a5cdad7662b6f5e15d1c27c46099f to your computer and use it in GitHub Desktop.

Skeleton Component Export Analysis

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.

How it's used internally

  • Imported via the webpack alias @woocommerce/base-components/skeleton
  • This alias is defined in webpack-helpers.js#L55 and resolves to assets/js/base/components/
  • @woocommerce/base-components is not a real npm package — it only exists at build time within the blocks webpack config

The public package: @woocommerce/blocks-components

The externally consumable package for shared block components is @woocommerce/blocks-components, which:

Skeleton is not listed in that file's exports.

Conclusion

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment