/** * Shim mapping `@wordpress/plugins` to WordPress' bundled `window.wp.plugins` * (adoption plan Phase 0.5). Editor entry bundles must declare the * `wp-plugins` script dependency in PHP so the global exists before this * module evaluates. */ const pkg = (window as any).wp?.plugins ?? {}; export const { registerPlugin, unregisterPlugin, getPlugin, getPlugins } = pkg; export default pkg;