/** * Vite plugin that tracks Custom Elements registrations on the server * and cleans up orphaned CEs when imports are removed during dev HMR. * * How it works: * 1. `configureServer` — installs the registry wrapper (before any modules load). * 2. `transform` (SSR only) — injects module-context markers around files that * might call `customElements.define`, so the wrapper knows which module is * responsible for each registration. * 3. `hotUpdate` — when a file changes, walks the OLD import tree, finds CE * modules in that tree, blocks their tags, and invalidates them. If they are * still imported after re-evaluation, `define()` fires again and unblocks. * If removed, they stay blocked. * * @internal */ import type { Plugin } from 'vite'; export declare function gracileCETrackerPlugin(): Plugin; //# sourceMappingURL=plugin-ce-tracker.d.ts.map