UNPKG

commerce-kit

Version:

22 lines (20 loc) 958 B
/** * Sandbox Inspectors — side-effect entry. * * Auto-mounts the design-mode + comment-mode inspectors inside per-store * storefronts running under the AI Builder sandbox dev server. Communicates * with the parent /design iframe via postMessage. * * Always-on: inspectors are passive postMessage listeners and don't affect the * page until the AI Builder iframe sends a `*-mode-toggle` message. Gating on * NODE_ENV is wrong (always "production" on Vercel) and any build-time gate * gets folded out by the commerce-kit bundle, leaving an empty file. */ /** * Exported so `browser.tsx` can `export { startSandboxInspectors }` — the * named binding anchors this module against esbuild tree-shaking when * commerce-kit is bundled. Without it, an `export * from "./sandbox-inspectors"` * re-exports an empty binding set and esbuild DCEs the whole file. */ declare function startSandboxInspectors(): void; export { startSandboxInspectors };