/** * Shared tsdown preset for UI plugin client bundles. Emits a closure-factory * artifact: the bundle calls window.__ModuleLoader__.load({id, factory}) * and resolves externals through the injected require (loader module table — * cordis DI entities, no globals, no import map). CSS Modules are compiled by * lightningcss inside the bundle: importing `x.module.css` yields the * hashed class map, and the css text auto-injects a